18 #ifndef TEXTUREMANAGER_H
19 #define TEXTUREMANAGER_H
47 const std::string ISLOADED =
" texture is already loaded.";
48 const std::string ISNOT_SIX =
" texture array size is not 6";
63 Texture * createTexture( FIBITMAP * bitmap );
87 void getPixelDepthData(
Texture * texture );
111 void addTextureToArray(
Texture * array ,
Texture * texture ,
int layer );
119 Texture * createTexture(
const std::string & resource_path );
138 Texture * createTexture(
int width ,
int height , uchar * pixeldata );
161 Texture * addVec4ToTexture(
Texture * float_texture , GLintptr offset , glm::vec4 vector );
256 bool loadFloatTexture(
Texture * texture );
257 bool loadFloatTexture1D(
Texture * texture );
281 #endif // TEXTUREMANAGER_H
The Texture class.
Definition: texture.h:37
bool loadTexture(Texture *texture, bool mipmapping)
loadTexture
Definition: TextureManager.cpp:725
Texture * getTexture(const std::string &texture_name)
getTexture
Definition: TextureManager.cpp:140
Texture * addCharTextureToArray(Texture *array_texture, Texture *add_texture, int layer)
addCharTextureToArray
Definition: TextureManager.cpp:322
Texture * createRenderBuffer(int render_width, int render_height, GLenum format)
TextureManager::createRenderBuffer.
Definition: TextureManager.cpp:546
Texture * createEmptyTexture(void)
createEmptyTexture
Definition: TextureManager.cpp:37
void destroy(Texture *texture)
destroy
Definition: TextureManager.cpp:845
Texture * createCubemapping(Textures six_textures, const std::string &texture_name)
createCubemapping
Definition: TextureManager.cpp:572
Texture * createTBOandBindVBO(uint vbo_id)
createTBOandBindVBO
Definition: TextureManager.cpp:108
Texture * createTextureArray(const std::string &texture_name, int width, int height, int size)
createTextureArray
Definition: TextureManager.cpp:127
void finish(void)
TextureManager::finish.
Definition: TextureManager.cpp:821
The TextureManager class.
Definition: texturemanager.h:42
Texture * addMatrixToTexture(Texture *float_texture, GLintptr offset, glm::mat4 matrix)
addMatrixToTexture
Definition: TextureManager.cpp:207
Texture * createCharTexture(int width, int height, int depth, uchar *pixeldata)
createCharTexture
Definition: TextureManager.cpp:366
static TextureManager * getSingletonPtr(void)
getSingletonPtr
Definition: TextureManager.cpp:26
Texture * createFrameBufferTexture(int width, int height, GLint format, GLenum output_format)
TextureManager::createFrameBufferTexture.
Definition: TextureManager.cpp:449
Texture * createStorage(Texture *texture_array, GLint format)
TextureManager::createStorage.
Definition: TextureManager.cpp:276
Texture * createFloatTexture(int width, int height, float *data)
createFloatTexture
Definition: TextureManager.cpp:198
void getPixelData(Texture *texture)
TextureManager::getTexImage.
Definition: TextureManager.cpp:75