3Depict
|
#include <textures.h>
Public Member Functions | |
TexturePool () | |
~TexturePool () | |
bool | openTexture (const char *texName, unsigned int &texID) |
bool | openTexture3D (const std::vector< std::string > &texName, unsigned int &texID) |
void | genTexID (unsigned int &textureID, size_t texType=GL_TEXTURE_2D) |
void | closeTexture (unsigned int texID) |
void | closeAll () |
|
inline |
References closeAll(), closeTexture(), genTexID(), openTexture(), openTexture3D(), pngTexture(), pngTexture1D(), pngTexture2D(), pngTexture3D(), and ~TexturePool().
TexturePool::~TexturePool | ( | ) |
void TexturePool::closeAll | ( | ) |
void TexturePool::closeTexture | ( | unsigned int | texID | ) |
Referenced by TexturePool(), DrawTexturedQuad::~DrawTexturedQuad(), and DrawTexturedQuadOverlay::~DrawTexturedQuadOverlay().
void TexturePool::genTexID | ( | unsigned int & | textureID, |
size_t | texType = GL_TEXTURE_2D |
||
) |
References texture::data, and texture::glID.
Referenced by DrawTexturedQuad::rebindTexture(), and TexturePool().
bool TexturePool::openTexture | ( | const char * | texName, |
unsigned int & | texID | ||
) |
References texture::glID, locateDataFile(), and pngTexture2D().
Referenced by DrawTexturedQuadOverlay::setTexture(), and TexturePool().
bool TexturePool::openTexture3D | ( | const std::vector< std::string > & | texName, |
unsigned int & | texID | ||
) |
References ASSERT, texture::glID, locateDataFile(), and pngTexture3D().
Referenced by DrawAnimatedOverlay::setTexture(), and TexturePool().