#include <ovtexture2d.h>
Public Member Functions | |
OVTexture2d () | |
The constructor of the Texture struct. | |
OVTexture2d (const char *texture, bool useMipMap=false) | |
The constructor of the Texture struct. | |
~OVTexture2d () | |
The destructor of the Texture struct. | |
void | Load (const char *texture, bool useMipMap=false) |
Loads a given texture to VRAM. | |
Data Fields | |
GLuint | texID |
GLuint | type |
int | width |
int | height |
int | bpp |
char * | filename |
OV::OVTexture2d::OVTexture2d | ( | ) |
The constructor of the Texture struct.
Initializes all variables.
OV::OVTexture2d::OVTexture2d | ( | const char * | texture, | |
bool | useMipMap = false | |||
) |
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. |
OV::OVTexture2d::~OVTexture2d | ( | ) |
The destructor of the Texture struct.
void OV::OVTexture2d::Load | ( | const char * | texture, | |
bool | useMipMap = false | |||
) |
Loads a given texture to VRAM.
texture | The filename of the texture |
GLuint OV::OVTexture2d::texID |
Texture ID
GLuint OV::OVTexture2d::type |
Byte order, GL_RGB or GL_RGBA
Texture width in pixels
Texture height in pixels
Bits per pixel
Stored filename to texture file