void bind(int texture_slot) const
Binds the texture to the given slot.
Definition: GLTexture.cpp:20
GLTexture()
Creates a new texture without any image data.
Definition: GLTexture.cpp:4
bool loadFromFile(const char *path, bool swapRB)
Loads the image and stores it in this texture.
Definition: GLTexture.cpp:32
void fromHandle(GLuint handle)
Sets the handle of the texture.
Definition: GLTexture.cpp:27
~GLTexture()
Delets the texture.
Definition: GLTexture.cpp:15
Encapsules an OpenGL texture for easier use.
Definition: GLTexture.h:8