24 #ifndef __HDLTEXTURE_INCLUDE__
25 #define __HDLTEXTURE_INCLUDE__
50 GLenum mode, depth, minFilter, magFilter, wraps, wrapt;
51 int baseLevel, maxLevel;
54 HdlAbstractTextureFormat(
int _width,
int _height, GLenum _mode, GLenum _depth, GLenum _minFilter = GL_NEAREST, GLenum _magFilter = GL_NEAREST, GLenum _wraps = GL_CLAMP, GLenum _wrapt = GL_CLAMP,
int _baseLevel = 0,
int _maxLevel = 0);
58 void setAlignment(
int _alignment);
63 int getWidth (
void)
const;
64 int getHeight (
void)
const;
65 int getNumPixels (
void)
const;
66 int getNumChannels (
void)
const;
67 int getNumElements (
void)
const;
68 int getAlignment (
void)
const;
69 int getPixelSize (
void)
const;
70 virtual size_t getRowSize (
void)
const;
71 virtual size_t getSize (
void)
const;
72 int getChannelDepth (
void)
const;
73 GLenum getGLMode (
void)
const;
74 GLenum getGLDepth (
void)
const;
75 GLenum getMinFilter (
void)
const;
76 GLenum getMagFilter (
void)
const;
77 int getBaseLevel (
void)
const;
78 int getMaxLevel (
void)
const;
79 GLenum getSWrapping (
void)
const;
80 GLenum getTWrapping (
void)
const;
81 bool isCompressed (
void)
const;
82 bool isFloatingPoint (
void)
const;
95 virtual unsigned int getSetting(GLenum param)
const;
98 static int getMaxSize(
void);
110 HdlTextureFormat(
int _width,
int _height, GLenum _mode, GLenum _depth, GLenum _minFilter = GL_NEAREST, GLenum _magFilter = GL_NEAREST, GLenum _wraps = GL_CLAMP, GLenum _wrapt = GL_CLAMP,
int _baseLevel = 0,
int _maxLevel = 0);
114 void setWidth (
int w);
115 void setHeight (
int h);
116 void setSize (
int w,
int h);
117 void setGLMode (GLenum md);
118 void setGLDepth (GLenum dp);
119 void setMinFilter(GLenum mf);
120 void setMagFilter(GLenum mf);
121 void setBaseLevel(
int l);
122 void setMaxLevel (
int l);
123 void setSWrapping(GLenum m);
124 void setTWrapping(GLenum m);
128 void setSetting(GLenum param,
unsigned int value);
154 GLuint getID(
void)
const;
155 bool isProxy(
void)
const;
156 int getSizeOnGPU(
int m=0);
157 void bind(GLenum unit=GL_TEXTURE0_ARB);
159 void write(GLvoid *texData, GLenum pixelFormat = GL_ZERO, GLenum pixelDepth = GL_ZERO,
int alignment=-1);
160 void writeCompressed(GLvoid *texData,
int size, GLenum pixelFormat = GL_ZERO, GLenum pixelDepth = GL_ZERO,
int alignment=-1);
161 void fill(
char dataByte);
162 void read(GLvoid *data, GLenum pixelFormat = GL_ZERO, GLenum pixelDepth = GL_ZERO,
int alignment=-1);
163 GLenum getInternalMode(
void);
164 bool checkForConsistency(
bool verbose =
false);
165 void setMinFilter(GLenum mf);
166 void setMagFilter(GLenum mf);
167 void setSWrapping(GLenum m);
168 void setTWrapping(GLenum m);
169 void setSetting(GLenum param,
unsigned int value);
174 static void unbind(GLenum unit=GL_TEXTURE0_ARB);
175 static void unbind(
int unit);
176 static int getMaxImageUnits(
void);
Object handle describing an OpenGL Texture mode.
Definition: HdlTextureTools.hpp:39
OpenGL Texture Handle Tools.
Object handle for OpenGL textures.
Definition: HdlTexture.hpp:138
Definition: Component.hpp:32
Object handle for OpenGL texture formats.
Definition: HdlTexture.hpp:106
OpenGL includes and tools.
Object handle for OpenGL texture formats (Read Only).
Definition: HdlTexture.hpp:42