#include <texture2d.h>
Public Member Functions | |
| Texture2d () | |
| The constructor of the Texture struct. | |
| Texture2d (const char *texture) | |
| The constructor of the Texture struct. | |
| ~Texture2d () | |
| The destructor of the Texture struct. | |
| void | Load (const char *texture, bool useFloat32=false) |
| Loads a given texture to VRAM. | |
Data Fields | |
| GLuint | texID |
| GLuint | type |
| int | width |
| int | height |
| int | bpp |
| char * | filename |
| Texture2d::Texture2d | ( | ) |
The constructor of the Texture struct.
Initializes all variables.
| Texture2d::Texture2d | ( | const char * | texture | ) |
The constructor of the Texture struct.
Initializes all variables and loads the given texture.
| texture | the name of the file which will be used as a texture. |
| Texture2d::~Texture2d | ( | ) |
The destructor of the Texture struct.
| void Texture2d::Load | ( | const char * | texture, | |
| bool | useFloat32 = false | |||
| ) |
Loads a given texture to VRAM.
| texture | The filename of the texture |
| GLuint Texture2d::texID |
Texture ID
| GLuint Texture2d::type |
Byte order, GL_RGB or GL_RGBA
| int Texture2d::width |
Texture width in pixels
Texture height in pixels
| int Texture2d::bpp |
Bits per pixel
| char* Texture2d::filename |
Stored filename to texture file
1.5.2