#include <GlTexture.hpp>
Public Member Functions | |
| void | bind () const |
| Bind the texture to the current OpenGL context. More... | |
| GlTexture () | |
| Empty ctor. More... | |
| GlTexture (const GlTexture &other) | |
| Copy ctor. More... | |
| GlTexture (const Texture &other) | |
| Copy ctor. More... | |
| GlTexture (unsigned char *pixels, int width, int height) | |
| Initializes a texture with given date. Class will release the data. More... | |
| void | upload () |
| Does all the OpenGL stuff to make it avialable for rendering. More... | |
| virtual | ~GlTexture () |
| Dtor. More... | |
Public Attributes | |
| int | m_height |
| The height of the texture in pixels. More... | |
| unsigned char * | m_pixels |
| The aligned pixel data. Three bytes per pixel (r,g,b) More... | |
| GLuint | m_texIndex |
| The texture index of the texture. More... | |
| int | m_width |
| The width of the texture in pixels. More... | |
Definition at line 56 of file GlTexture.hpp.
| lvr2::GlTexture::GlTexture | ( | unsigned char * | pixels, |
| int | width, | ||
| int | height | ||
| ) |
Initializes a texture with given date. Class will release the data.
| pixels | The image data of the texture. Pixel aligned, three bytes per pixel |
| width | The image width |
| height | The image height |
Definition at line 43 of file GlTexture.cpp.
| lvr2::GlTexture::GlTexture | ( | const GlTexture & | other | ) |
Copy ctor.
Definition at line 51 of file GlTexture.cpp.
| lvr2::GlTexture::GlTexture | ( | const Texture & | other | ) |
Copy ctor.
Definition at line 67 of file GlTexture.cpp.
|
inline |
Empty ctor.
Definition at line 84 of file GlTexture.hpp.
|
virtual |
Dtor.
Definition at line 96 of file GlTexture.cpp.
|
inline |
Bind the texture to the current OpenGL context.
Definition at line 94 of file GlTexture.hpp.
| void lvr2::GlTexture::upload | ( | ) |
Does all the OpenGL stuff to make it avialable for rendering.
Definition at line 109 of file GlTexture.cpp.
| int lvr2::GlTexture::m_height |
The height of the texture in pixels.
Definition at line 106 of file GlTexture.hpp.
| unsigned char* lvr2::GlTexture::m_pixels |
The aligned pixel data. Three bytes per pixel (r,g,b)
Definition at line 109 of file GlTexture.hpp.
| GLuint lvr2::GlTexture::m_texIndex |
The texture index of the texture.
Definition at line 112 of file GlTexture.hpp.
| int lvr2::GlTexture::m_width |
The width of the texture in pixels.
Definition at line 103 of file GlTexture.hpp.