GPUtexture(GLsizei width, GLsizei height, GLenum format, bool createFramebuffer)
Constructor.
void setPixels(void const *data)
Copy pixel data from memory location to the texture.
~GPUtexture()
Destructor, frees the texture in OpenGL.
void getPixels(void *data) const
Copy pixel data from the texture to already-allocated memory location.
Simple class to hold an OpenGL texture.