Kinetic Visualization
 All Classes Functions Variables Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes
Texture Class Reference
Inheritance diagram for Texture:
FBO

List of all members.

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)
ImgGetImage () const
unsigned int GetTexName ()
unsigned int GetTexName2 ()
void SetTexName (unsigned int tex)

Public Attributes

int TextureTyp
int Correction
int Filter
int Mipmap
glm::vec4 BorderColor
int CoordU
int CoordV
int Texgen
glm::vec4 BlendColor
int Apply
int CombineFuncRGB
int CombineFuncAlpha
int CombineSrc0RGB
int CombineSrc1RGB
int CombineSrc2RGB
int CombineSrc0Alpha
int CombineSrc1Alpha
int CombineSrc2Alpha
int CombineOp0RGB
int CombineOp1RGB
int CombineOp2RGB
int CombineOp0Alpha
int CombineOp1Alpha
int CombineOp2Alpha
int CombineScaleRGB
int CombineScaleAlpha
bool m_pingbong
unsigned int current_texture
unsigned int m_dimension
std::string texturename
unsigned int m_width
unsigned int m_height
unsigned int m_depth

Static Public Attributes

static std::vector< Texture * > textures

Protected Attributes

unsigned int texname
unsigned int texname2
Imgm_pImage

Constructor & Destructor Documentation

Texture::Texture ( )
inline

Standardconstructor

Texture::Texture ( unsigned int  dimensions,
bool  pingbong = false 
)
inline

Constructor

Parameters:
dimensionsdimensions of texture
pingpongtrue.. pingpong enables otherwise false
Texture::Texture ( Img pkImage,
bool  pingbong = false 
)
inline

Constructor

Parameters:
pkImageimage
pingpongtrue.. pingpong enables otherwise false

Member Function Documentation

Img * Texture::GetImage ( ) const

This method returns the image

Parameters:
retunsthe image
void Texture::SetImage ( Img pImage)

This method sets the image

Parameters:
pImageimage to set

The documentation for this class was generated from the following files: