Class GlTexture
Defined in File GlTexture.hpp
Class Documentation
-
class GlTexture
Public Functions
-
GlTexture(unsigned char *pixels, int width, int height)
Initializes a texture with given date. Class will release the data.
- Parameters:
pixels – The image data of the texture. Pixel aligned, three bytes per pixel
width – The image width
height – The image height
-
inline GlTexture()
Empty ctor.
-
virtual ~GlTexture()
Dtor.
-
inline void bind() const
Bind the texture to the current OpenGL context.
-
void upload()
Does all the OpenGL stuff to make it avialable for rendering.
-
GlTexture(unsigned char *pixels, int width, int height)