#include <Textures.h>
Static Public Member Functions | |
static void | Load () |
static GLuint | GetId (int texture_id) |
static void | Release () |
Private Member Functions | |
Textures () | |
Static Private Member Functions | |
static bool | LoadBMP (char *file_name, GLuint texture_id) |
static void | CreatePerlinTexture (PerlinNoise *perlin, GLuint texture_id) |
static void | CreateTexture (GLuint tex_id, int size_x, int size_y, GLubyte *raw_data) |
Static Private Attributes | |
static GLuint | tex_id [MAX_TEXTURES] |
A repository that stores all textures. Cannot be instantiated.
Definition at line 25 of file Textures.h.
|
Hide default constructor. |
|
Creates a perlin texture of an arbitrary size.
Definition at line 125 of file Textures.cpp. |
|
Creates a mipmap texture.
Definition at line 138 of file Textures.cpp. |
|
Returns the OpenGL identifier of a specific texture.
Definition at line 56 of file Textures.cpp. |
|
Loads all the textures and sends them to the memory of the graphics card. Definition at line 5 of file Textures.cpp. |
|
Loads a windows bitmap file from disk (files with indexed colors not supported).
Definition at line 61 of file Textures.cpp. |
|
Releases all textures. Definition at line 51 of file Textures.cpp. |
|
Internally stores the OpenGL texture names. Definition at line 51 of file Textures.h. |