SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::ComponentTexture Class Reference

The class texture of a component This class implements all texture operations to store the texture of the component. More...

#include <ComponentTexture.h>

Public Member Functions

 ComponentTexture (GLsizei width, GLsizei height)
 
virtual ~ComponentTexture (void)
 
void setTextureEnvMode (GLfloat param)
 
void enable (void)
 
void disable (void)
 
GLsizei getWidth (void) const
 
GLsizei getHeight (void) const
 
GLuint getTextureId (void) const
 
void display (void)
 
void display (const int translateX, const int translateY, GLuint clipX, GLuint clipY, GLsizei clipWidth, GLsizei clipHeight)
 
void display (const Point &translate, int id)
 
void display (const int translateX, const int translateY, int id)
 
void display (const Point &translate, int id, const Point &textSize)
 
void display (const int translateX, const int translateY, int id, const int textSizeX, const int textSizeY)
 
int addTexture (const Point &textCoords, MatrixTemplate< ColorRGBA > clip)
 
int addTexture (const Point &textCoords, unsigned int w, unsigned int h, const unsigned char *data)
 
int addTexture (const Point &textCoords, ColorRGBA color)
 
void clearTextureIds (void)
 
int addTextureId (const Point &textCoords, unsigned int w, unsigned int h)
 
void setTexture (const Point &textCoords, MatrixTemplate< ColorRGBA > clip, int id)
 
void createTexture (void)
 

Detailed Description

The class texture of a component This class implements all texture operations to store the texture of the component.

Constructor & Destructor Documentation

scv::ComponentTexture::ComponentTexture ( GLsizei  width,
GLsizei  height 
)
scv::ComponentTexture::~ComponentTexture ( void  )
virtual

Member Function Documentation

int scv::ComponentTexture::addTexture ( const Point textCoords,
MatrixTemplate< ColorRGBA clip 
)
int scv::ComponentTexture::addTexture ( const Point textCoords,
unsigned int  w,
unsigned int  h,
const unsigned char *  data 
)
int scv::ComponentTexture::addTexture ( const Point textCoords,
ColorRGBA  color 
)
int scv::ComponentTexture::addTextureId ( const Point textCoords,
unsigned int  w,
unsigned int  h 
)
void scv::ComponentTexture::clearTextureIds ( void  )
void scv::ComponentTexture::createTexture ( void  )
void scv::ComponentTexture::disable ( void  )
inline
void scv::ComponentTexture::display ( void  )
void scv::ComponentTexture::display ( const int  translateX,
const int  translateY,
GLuint  clipX,
GLuint  clipY,
GLsizei  clipWidth,
GLsizei  clipHeight 
)
void scv::ComponentTexture::display ( const Point translate,
int  id 
)
void scv::ComponentTexture::display ( const int  translateX,
const int  translateY,
int  id 
)
inline
void scv::ComponentTexture::display ( const Point translate,
int  id,
const Point textSize 
)
void scv::ComponentTexture::display ( const int  translateX,
const int  translateY,
int  id,
const int  textSizeX,
const int  textSizeY 
)
inline
void scv::ComponentTexture::enable ( void  )
inline
GLsizei scv::ComponentTexture::getHeight ( void  ) const
inline
GLuint scv::ComponentTexture::getTextureId ( void  ) const
inline
GLsizei scv::ComponentTexture::getWidth ( void  ) const
inline
void scv::ComponentTexture::setTexture ( const Point textCoords,
MatrixTemplate< ColorRGBA clip,
int  id 
)
void scv::ComponentTexture::setTextureEnvMode ( GLfloat  param)
inline

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