3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
TexturePool Class Reference

#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 ()
 

Constructor & Destructor Documentation

◆ TexturePool()

TexturePool::TexturePool ( )
inline

◆ ~TexturePool()

TexturePool::~TexturePool ( )

References closeAll().

Referenced by TexturePool().

Here is the caller graph for this function:

Member Function Documentation

◆ closeAll()

void TexturePool::closeAll ( )

Referenced by TexturePool(), and ~TexturePool().

Here is the caller graph for this function:

◆ closeTexture()

void TexturePool::closeTexture ( unsigned int  texID)

Referenced by TexturePool(), DrawTexturedQuad::~DrawTexturedQuad(), and DrawTexturedQuadOverlay::~DrawTexturedQuadOverlay().

Here is the caller graph for this function:

◆ genTexID()

void TexturePool::genTexID ( unsigned int &  textureID,
size_t  texType = GL_TEXTURE_2D 
)

References texture::data, and texture::glID.

Referenced by DrawTexturedQuad::rebindTexture(), and TexturePool().

Here is the caller graph for this function:

◆ openTexture()

bool TexturePool::openTexture ( const char *  texName,
unsigned int &  texID 
)

References texture::glID, locateDataFile(), and pngTexture2D().

Referenced by DrawTexturedQuadOverlay::setTexture(), and TexturePool().

Here is the caller graph for this function:

◆ openTexture3D()

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().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: