7 #ifndef __SCV_COMPONENT_TEXTURE_H__
8 #define __SCV_COMPONENT_TEXTURE_H__
10 #ifndef DOXYGEN_SKIP_THIS
14 #endif // DOXYGEN_SKIP_THIS
29 _textureEnvMode = param;
34 glBindTexture(GL_TEXTURE_2D, _textureId);
35 glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, _textureEnvMode);
40 glBindTexture(GL_TEXTURE_2D, 0);
44 return _textureSize[0];
47 return _textureSize[1];
55 void display(
const int translateX,
const int translateY, GLuint clipX, GLuint clipY, GLsizei clipWidth, GLsizei clipHeight);
58 void display(
const int translateX,
const int translateY,
int id);
61 void display(
const int translateX,
const int translateY,
int id,
const int textSizeX,
const int textSizeY);
64 int addTexture(
const Point &textCoords,
unsigned int w,
unsigned int h,
const unsigned char* data);
73 GLsizei _textureSize[2];
74 GLfloat _textureEnvMode;
77 std::vector<Point> _textCoords;
78 std::vector<Point> _textSize;
85 inline void ComponentTexture::display(
const int translateX,
const int translateY,
int id,
const int textSizeX,
const int textSizeY) {
91 #endif // __SCV_COMPONENT_TEXTURE_H__