Vis 2
Kinetic Visualization for 3D shape and structure
 All Classes Namespaces Functions Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Texture Class Reference

#include <Texture.h>

Public Member Functions

 Texture (GLuint textureHandle, GLuint width=0.f, GLuint height=0.f, bool hasMipmaps=false, bool isSingleChannel=false, float anisotropy=1.f)
 
bool hasMipmaps () const
 
bool isSingleChannel () const
 
float getAnisotropy () const
 
GLuint getTextureHandle () const
 

Static Public Member Functions

static TexturecreateFromPNG (std::string &path, bool mipmaps=false, bool singleChannel=false, float anisotropy=1.0f)
 
static TexturecreateFromPNG (const std::vector< std::string > &paths)
 

Public Attributes

unsigned _width
 
unsigned _height
 

Detailed Description

Encapsulates the data and functions for texture loading


The documentation for this class was generated from the following files: