25 #ifndef __glfTexture_hh__
26 #define __glfTexture_hh__
28 #include "glfCommon.hh"
29 #include <Base/Image/ImageBase.hh>
57 void SetMinFilter(GLenum minFilter);
63 void SetMagFilter(GLenum magFilter);
70 void SetWrapS(GLenum wrapS);
76 void SetWrapT(GLenum wrapT);
82 void SetWrapR(GLenum wrapR);
87 void SetGenerateMipMap(
bool generateMipMap);
92 void SetBaseLevel(
int baseLevel);
97 void SetMaxLevel(
int maxLevel);
102 void SetBorderColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
111 void EnlargeToPowerOfTwoIfRequired(
bool enlargeToPotIfRequired =
true);
118 void GenerateMipMap();
138 void BindTU(
int number)
const;
162 void SetTextureNr(GLint textureNr);
167 void SetTextureNrInUniformFormat(
int textureNr);
202 static int NextPowerOfTwo(
int i);
238 static int GetMaxSupportedTextureUnits();
264 #endif // __glfTexture_hh__
BIASOpenGLFramework_EXPORT void SwapGLObjects(glfTexture &A, glfTexture &B)
int GetTextureNrInUniformFormat()
Returns the OpenGL texture number in uniform format or -1 for error.
GLuint GetTextureID() const
Returns the OpenGL texture id.
GLint GetTextureNr()
Returns the OpenGL texture number.
GLenum GetTextureTarget() const
Returns the OpenGL texture target.