25 #ifndef __glfTexture2D_hh__
26 #define __glfTexture2D_hh__
28 #include "glfTexture.hh"
45 void Set(GLenum minFilter = GL_NEAREST,
46 GLenum magFilter = GL_NEAREST,
47 GLenum wrapS = GL_CLAMP,
48 GLenum wrapT = GL_CLAMP,
49 GLint textureNr = GL_TEXTURE0);
62 GLenum internalFormat = 0,
75 void UploadImageFromFile(
const std::string& fileName,
76 GLenum internalFormat = 0,
86 void Allocate(
int width,
int height,
87 GLenum internalFormat,
int mipmap = 0);
96 void Allocate(
int width,
int height,
116 void CopyToImage(
ImageBase& image,
int mipmap = 0);
121 void DumpUC_RGBA(
const std::string& fileName);
137 void CopyChannelsToImage(
ImageBase& image, GLenum format,
int mipmap = 0);
142 int GetWidth(
int mipmap = 0)
const;
147 int GetHeight(
int mipmap = 0)
const;
162 #endif // __glfTexture2D_hh__
EColorModel
These are the most often used color models.
This is the base class for images in BIAS.