Texture(const std::string &filename, bool readalpha=false)
Definition: texture.cpp:7
~Texture()
Definition: texture.cpp:29
GLuint getHandle() const
Definition: texture.hpp:15
GLuint handle
Definition: texture.hpp:20
static void loadBMP(const std::string &filename, std::vector< unsigned char > &data, size_t &width, size_t &height, size_t &bitPerPixel, bool readalpha=false)
Definition: texture.cpp:34
Encapsulates a texture in the GPU.
Definition: texture.hpp:10