This class is used to load, store and refer textures in general. It is meant to be used in CGFappearance instances. More...
#include <CGFtexture.h>
Public Member Functions | |
CGFtexture () | |
Basic contructor. | |
CGFtexture (string) | |
Constructor for initializing the texture from a file (supports jpeg, png, bmp, among others, using stbi-1.33 - http://nothings.org/stb_image.c ) | |
void | apply () |
Applies the texture (makes it active for whatever is rendered next) | |
Protected Member Functions | |
void | loadTexture (string) |
Protected Attributes | |
string | texName |
int | texWidth |
int | texHeight |
unsigned int | texID |
This class is used to load, store and refer textures in general. It is meant to be used in CGFappearance instances.