ComputerGraphik TU WIEN
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Texture Class Reference

Encapsulates a texture in the GPU. More...

#include <texture.hpp>

Public Member Functions

 Texture (const std::string &filename, bool readalpha=false)
 
 ~Texture ()
 
GLuint getHandle () const
 

Static Public Member Functions

static void loadBMP (const std::string &filename, std::vector< unsigned char > &data, size_t &width, size_t &height, size_t &bitPerPixel, bool readalpha=false)
 

Private Attributes

GLuint handle
 

Detailed Description

Encapsulates a texture in the GPU.

Constructor & Destructor Documentation

Texture::Texture ( const std::string &  filename,
bool  readalpha = false 
)
Texture::~Texture ( )

Member Function Documentation

GLuint Texture::getHandle ( ) const
inline
void Texture::loadBMP ( const std::string &  filename,
std::vector< unsigned char > &  data,
size_t &  width,
size_t &  height,
size_t &  bitPerPixel,
bool  readalpha = false 
)
static

Member Data Documentation

GLuint Texture::handle
private

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