#include <texture.h>
Public Methods | |
Texture (const char *texturefile, enum AlphaModes alpha, bool mipmap, int minfilter, int magfilter, int wrapmode) | |
~Texture () | |
int | width () |
int | height () |
GLint | getTextureID () |
const char * | getFilename () |
bool | isSameFile (const char *fname) |
Private Attributes | |
GLint | texture_id |
int | twidth |
int | theight |
const char * | filename |
|
Create new texture from bitmap file. Currently supports only PNG. It's better to use Renderer's texture management than this class.
|
|
|
|
Return texture filename.
|
|
Return GL texture ID or zero if no texture loaded.
|
|
Return texture height in pixels.
|
|
Compares fname with current texture filename and return true if names are poining at same file.
|
|
Return texture width in pixels.
|
|
|
|
|
|
|
|
|