25 #ifndef __Texture2DPool_hh__
26 #define __Texture2DPool_hh__
28 #include <OpenGLFramework/Base/glfTexture2D.hh>
31 #include <bias_config.h>
53 operator[](
const std::string& name);
57 Create(
const std::string& name,
int width,
int height,
58 GLenum internalFormat, GLenum minFilter = GL_NEAREST, GLenum magFilter =
59 GL_NEAREST, GLenum wrapS = GL_CLAMP, GLenum wrapT = GL_CLAMP,
65 GLenum minFilter = GL_NEAREST, GLenum magFilter = GL_NEAREST,
66 GLenum wrapS = GL_CLAMP, GLenum wrapT = GL_CLAMP,
67 GLenum internalFormat = 0,
int mipmap = 0);
70 Create(
const std::string& name,
int width,
int height,
72 GLenum minFilter = GL_NEAREST, GLenum magFilter = GL_NEAREST,
73 GLenum wrapS = GL_CLAMP, GLenum wrapT = GL_CLAMP,
int mipmap = 0);
77 GLenum minFilter = GL_NEAREST, GLenum magFilter = GL_NEAREST,
78 GLenum wrapS = GL_CLAMP, GLenum wrapT = GL_CLAMP,
79 GLenum internalFormat = 0,
int mipmap = 0);
84 Clear(
const std::string& name);
86 std::map<std::string, BIAS::glfTexture2D*>
GetTextureMap() {
return texturePool_; }
90 std::map<std::string, BIAS::glfTexture2D*> texturePool_;
97 Texture2DPool(
const Texture2DPool&)
EColorModel
These are the most often used color models.
std::map< std::string, BIAS::glfTexture2D * > GetTextureMap()
Convenience container for managing 2D textures.
This is the base class for images in BIAS.