Public Types | |
enum | { TT_NORMAL, TT_MIPMAP, TT_ANISOTRPIC } |
enum | { CM_AFFINE, CM_PERSPECTIVE, CM_QUANTITY = 2 } |
enum | { FM_NEAREST = 0x2600, FM_LINEAR = 0x2601, FM_QUANTITY = 2 } |
enum | { MM_NEAREST = 0x2600, MM_LINEAR = 0x2601, MM_NEAREST_NEAREST = 0x2700, MM_NEAREST_LINEAR = 0x2702, MM_LINEAR_NEAREST = 0x2701, MM_LINEAR_LINEAR = 0x2703, MM_QUANTITY = 6 } |
enum | { WM_CLAMP = 0x2900, WM_REPEAT = 0x2901, WM_CLAMP_BORDER = 0x812D, WM_CLAMP_EDGE = 0x812F, WM_MIRRORED_REPEAT = 0x8370, WM_QUANTITY = 5 } |
enum | { TG_NONE, TG_ENVIRONMENT_MAP, TG_PROJECTED_TEXTURE, TG_QUANTITY } |
enum | { AM_REPLACE = 0x1E01, AM_DECAL = 0x2101, AM_MODULATE = 0x2100, AM_BLEND = 0x0BE2, AM_ADD = 0x0104, AM_COMBINE = 0x8570, AM_QUANTITY = 6 } |
enum | { ACF_REPLACE = 0x1E01, ACF_MODULATE = 0x2100, ACF_ADD = 0x0104, ACF_ADD_SIGNED = 0x8574, ACF_SUBTRACT = 0x84E7, ACF_INTERPOLATE = 0x8575, ACF_DOT3_RGB = 0x86AE, ACF_DOT3_RGBA = 0x86AF, ACF_QUANTITY = 8 } |
enum | { ACS_TEXTURE = 0x1702, ACS_PRIMARY_COLOR = 0x8577, ACS_CONSTANT = 0x8576, ACS_PREVIOUS = 0x8578, ACS_QUANTITY = 4 } |
enum | { ACO_SRC_COLOR = 0x0300, ACO_ONE_MINUS_SRC_COLOR = 0x0301, ACO_SRC_ALPHA = 0x0302, ACO_ONE_MINUS_SRC_ALPHA = 0x0303, ACO_QUANTITY = 4 } |
enum | { ACSC_ONE, ACSC_TWO, ACSC_FOUR, ACSC_QUANTITY } |
typedef boost::shared_ptr < Texture > | TexturePtr |
Public Member Functions | |
Texture () | |
Texture (unsigned int dimensions, bool pingbong=false) | |
Texture (Img *pkImage, bool pingbong=false) | |
void | SetImage (Img *pImage) |
Img * | GetImage () const |
unsigned int | GetTexName () |
unsigned int | GetTexName2 () |
void | SetTexName (unsigned int tex) |
Static Public Attributes | |
static std::vector< Texture * > | textures |
Protected Attributes | |
unsigned int | texname |
unsigned int | texname2 |
Img * | m_pImage |
|
inline |
Standardconstructor
|
inline |
Constructor
dimensions | dimensions of texture |
pingpong | true.. pingpong enables otherwise false |
|
inline |
Constructor
pkImage | image |
pingpong | true.. pingpong enables otherwise false |
Img * Texture::GetImage | ( | ) | const |
This method returns the image
retuns | the image |
void Texture::SetImage | ( | Img * | pImage | ) |
This method sets the image
pImage | image to set |