#include <Texture.h>
Static Public Member Functions | |
| static int | LoadTIFFImage (ImageHandle &image, const char path[]) |
| Load a tiff image from disk. | |
| static int | LoadAndBindTexture (GLuint *tex, const char path[]) |
| Load a tiff image from disk and bind it as the current texture. | |
| static int | LoadAndBindTexture (GLuint *tex, const char path[], GLuint mode) |
| Load a tiff image from disk and bind it as the current texture. | |
| static int | LoadTextureForName (const char name[], const char path[]) |
| Load a tiff image from disk, bind it as the current texture and associate it with a name for later reference. | |
| static int | GetTextureByName (const char name[]) |
| Get the texture id for a texture name. | |
| static void | FreeTextureForName (const char name[]) |
| Release memory occupied by a texture accosiated with a name. | |
Static Protected Attributes | |
| static IntNameMap | textureMap |
The class also provides a mechanism for mapping textures to names (strings) for easy reference.
Currently supported formats are: TIFF.
Depends on: libtiff.
| static void Texture::FreeTextureForName | ( | const char | name[] | ) | [static] |
Release memory occupied by a texture accosiated with a name.
| name | The name associated with the texture. |
| static int Texture::GetTextureByName | ( | const char | name[] | ) | [static] |
Get the texture id for a texture name.
| name | The name associated with the texture. |
| static int Texture::LoadAndBindTexture | ( | GLuint * | tex, | |
| const char | path[], | |||
| GLuint | mode | |||
| ) | [static] |
Load a tiff image from disk and bind it as the current texture.
| tex | Pointer to an GLuint that stores the ID of the texture loaded. | |
| path | The path specifying where the TIFF image can be found. | |
| mode | The internal GL storage mode |
| static int Texture::LoadAndBindTexture | ( | GLuint * | tex, | |
| const char | path[] | |||
| ) | [static] |
Load a tiff image from disk and bind it as the current texture.
| tex | Pointer to an GLuint that stores the ID of the texture loaded. | |
| path | The path specifying where the TIFF image can be found. |
| static int Texture::LoadTextureForName | ( | const char | name[], | |
| const char | path[] | |||
| ) | [static] |
Load a tiff image from disk, bind it as the current texture and associate it with a name for later reference.
Note that the parameter name must be unique!
| name | The name that should be associated with this texture. | |
| path | The path specifying where the TIFF image can be found. |
| static int Texture::LoadTIFFImage | ( | ImageHandle & | image, | |
| const char | path[] | |||
| ) | [static] |
Load a tiff image from disk.
| image | A reference to a TIFF ImageHandle to hold the image data. If the image already contains data, the memory occupied by this data is returned to the system and the data is replaced by the new image data. | |
| path | The path specifying where the TIFF image can be found. |
IntNameMap Texture::textureMap [static, protected] |
1.4.7