|
Public Types |
| enum | TEXTUREDEF |
| | Texture class defines.
|
| enum | TEXTUREINTERNALFORMAT |
| | Internal texture format identifiers.
|
| enum | TEXTUREFORMAT { DEFAULT = -1
} |
| | Texture format specifiers during loading. More...
|
| enum | TEXTURETYPE { TEX2D = 0,
CUBEMAP = 1
} |
| | Type of texture (normal, cubemap, spheremap). More...
|
| enum | TEXTURELOADFLAG { NOFLAGS = 0,
NOMIPMAPS = 1
} |
| | Texture loading flags. More...
|
| enum | TEXTURECUBEMAPFACE {
CUBEFACE_RIGHT = 0,
CUBEFACE_LEFT = 1,
CUBEFACE_UP = 2,
CUBEFACE_DOWN = 3,
CUBEFACE_BACK = 4,
CUBEFACE_FRONT = 5
} |
| | Cube map face identifiers. More...
|
| enum | TEXTUREFILTERMODE {
NEAREST = 1,
LINEAR = 2,
ANISO = 3,
NOFILTERING = ( NEAREST | ( NEAREST << 8 ) | ( NEAREST << 16 ) ),
BILINEAR = ( LINEAR | ( LINEAR << 8 ) | ( NEAREST << 16 ) ),
TRILINEAR = ( LINEAR | ( LINEAR << 8 ) | ( LINEAR << 16 ) ),
ANISOTROPIC = ( ANISO | ( ANISO << 8 ) | ( ANISO << 16 ) )
} |
| | Texture filtering modes, primitive and combined. More...
|
Public Member Functions |
| | Texture (const std::string &rstrName, TexturePool *pkTexturePool) |
| virtual | ~Texture () |
| int | GetID () const |
| TEXTURETYPE | GetType () const |
| bool | IsValid () const |
| bool | HasAlpha () const |
| float | GetWidth () const |
| float | GetHeight () const |
| void | SetName (const std::string &rstrName) |
| const HashString & | GetName () const |
| TEXTUREFORMAT | GetFormat () const |
| unsigned int | GetFiltering () const |
| unsigned int | GetMaxAnisotropy () const |
| virtual bool | UploadImage (ImageData *pkImageData, TEXTURETYPE eType=TEX2D, TEXTUREFORMAT eFormat=DEFAULT, unsigned int uiFlags=0, unsigned int uiFiltering=0, unsigned int uiMaxAnisotropy=1)=0 |
| bool | GenerateNormalizationCubeMap (int iSize=256) |
| void | SetMaxAnisotropy (unsigned int uiMaxAnisotropy) |
| bool | operator< (const Texture &rkTexture) const |
| bool | operator== (const Texture &rkTexture) const |
| void | IncRef () |
| void | DecRef () |
| int | GetRefCount () const |
Static Public Member Functions |
| unsigned int | BuildFilter (TEXTUREFILTERMODE eMinFilter, TEXTUREFILTERMODE eMagFilter, TEXTUREFILTERMODE eMipFilter) |
Protected Attributes |
| HashString | m_strName |
| int | m_iID |
| int | m_iWidth |
| int | m_iHeight |
| float | m_fWidth |
| float | m_fHeight |
| float | m_fRatio |
| TEXTURETYPE | m_eType |
| TEXTUREFORMAT | m_eFormat |
| int | m_iInternalFormat |
| TexturePool * | m_pkPool |
| unsigned int | m_uiFiltering |
| unsigned int | m_uiMaxAnisotropy |