KrisLibrary  1.0.0
GLTexture2D.h
1 #ifndef GL_TEXTURE_2D_H
2 #define GL_TEXTURE_2D_H
3 
4 #include "GLTextureObject.h"
5 
6 namespace GLDraw {
7 
12 {
13  public:
14  GLTexture2D();
15  void setLuminance(const unsigned char* data,int m,int n);
16  void setRGB(const unsigned char* data,int m,int n);
17  void setRGBA(const unsigned char* data,int m,int n);
18  void setAlpha(const unsigned char* data,int m,int n);
19  void setFilterLinear();
20  void setFilterNearest();
21  void setWrapClamp();
22  void setWrapRepeat();
23  void setCurrentGL();
24 
25  GLTextureObject texObj;
26 };
27 
28 } //namespace GLDraw
29 
30 #endif
31 
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:13
A GL texture object class. Simplifies allocating and cleaning up texture objects. Usually you only ne...
Definition: GLTextureObject.h:13
2D texture data for use in OpenGL.
Definition: GLTexture2D.h:11