CGFLib - A library for Computer Graphics @ FEUP
 All Classes Files Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CGFtexture Class Reference

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
 

Detailed Description

This class is used to load, store and refer textures in general. It is meant to be used in CGFappearance instances.