GFXTexHandle

Engine/source/gfx/gfxTextureHandle.h

A reference counted handle to a texture resource.

More...

Public Static Attributes

Helper 2x2 R8G8B8A8 texture filled with 255.

Helper 2x2 R8G8B8A8 texture filled with 0.

Helper 2x2 R8G8B8A8 normal map texture filled with 128, 128, 255.

Public Functions

GFXTexHandle(const String & texName, GFXTextureProfile * profile, const String & desc)
GFXTexHandle(const String & texNameR, const String & texNameG, const String & texNameB, const String & texNameA, U32 inputKey, GFXTextureProfile * profile, const String & desc)
GFXTexHandle(DDSFile * bmp, GFXTextureProfile * profile, bool deleteDDS, const String & desc)
GFXTexHandle(GBitmap * bmp, GFXTextureProfile * profile, bool deleteBmp, const String & desc)
GFXTexHandle(U32 width, U32 height, GFXFormat format, GFXTextureProfile * profile, const String & desc, U32 numMipLevels, S32 antialiasLevel)
bool
free()

Releases the texture handle.

Returns the backing bitmap for this texture.

Returns the width and height as a point.

lock(U32 mipLevel, RectI * inRect)

Returns the texture object.

Reloads the texture.

bool
set(const String & texName, GFXTextureProfile * profile, const String & desc)
bool
set(const String & texNameR, const String & texNameG, const String & texNameB, const String & texNameA, U32 inputKey, GFXTextureProfile * profile, const String & desc)
bool
set(DDSFile * bmp, GFXTextureProfile * profile, bool deleteDDS, const String & desc)
bool
set(GBitmap * bmp, GFXTextureProfile * profile, bool deleteBmp, const String & desc)
bool
set(U32 width, U32 height, GFXFormat format, GFXTextureProfile * profile, const String & desc, U32 numMipLevels, S32 antialiasLevel)
bool
set(U32 width, U32 height, U32 depth, GFXFormat format, GFXTextureProfile * profile, const String & desc, U32 numMipLevels)
unlock(U32 mipLevel)

Detailed Description

A reference counted handle to a texture resource.

Public Static Attributes

GFXTexHandle ONE 

Helper 2x2 R8G8B8A8 texture filled with 255.

GFXTexHandle ZERO 

Helper 2x2 R8G8B8A8 texture filled with 0.

GFXTexHandle ZUP 

Helper 2x2 R8G8B8A8 normal map texture filled with 128, 128, 255.

Public Functions

GFXTexHandle()

GFXTexHandle(const GFXTexHandle & handle, const String & desc)

GFXTexHandle(const String & texName, GFXTextureProfile * profile, const String & desc)

GFXTexHandle(const String & texNameR, const String & texNameG, const String & texNameB, const String & texNameA, U32 inputKey, GFXTextureProfile * profile, const String & desc)

GFXTexHandle(DDSFile * bmp, GFXTextureProfile * profile, bool deleteDDS, const String & desc)

GFXTexHandle(GBitmap * bmp, GFXTextureProfile * profile, bool deleteBmp, const String & desc)

GFXTexHandle(GFXTextureObject * obj)

GFXTexHandle(U32 width, U32 height, GFXFormat format, GFXTextureProfile * profile, const String & desc, U32 numMipLevels, S32 antialiasLevel)

copyToBmp(GBitmap * bmp)

free()

Releases the texture handle.

getBitmap()

Returns the backing bitmap for this texture.

getBitmap()

getDepth()

getFormat()

getHeight()

getWidth()

getWidthHeight()

Returns the width and height as a point.

lock(U32 mipLevel, RectI * inRect)

operator GFXTextureObject*()

Returns the texture object.

operator!=(const GFXTexHandle & t)

operator=(const GFXTexHandle & t)

operator=(GFXTextureObject * to)

operator==(const GFXTexHandle & t)

refresh()

Reloads the texture.

set(const String & texName, GFXTextureProfile * profile, const String & desc)

set(const String & texNameR, const String & texNameG, const String & texNameB, const String & texNameA, U32 inputKey, GFXTextureProfile * profile, const String & desc)

set(DDSFile * bmp, GFXTextureProfile * profile, bool deleteDDS, const String & desc)

set(GBitmap * bmp, GFXTextureProfile * profile, bool deleteBmp, const String & desc)

set(U32 width, U32 height, GFXFormat format, GFXTextureProfile * profile, const String & desc, U32 numMipLevels, S32 antialiasLevel)

set(U32 width, U32 height, U32 depth, GFXFormat format, GFXTextureProfile * profile, const String & desc, U32 numMipLevels)

unlock(U32 mipLevel)