#include <Texture.h>
LayerSceneGraph::Texture::Texture |
( |
GLubyte * |
pxls, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Constructor.
- Parameters
-
pxls,: | GLubyte pointer which holds RGBA coordinates. |
w,: | texture image width |
h,: | texture image height |
LayerSceneGraph::Texture::~Texture |
( |
| ) |
|
|
virtual |
Destructor. Releases memory allocated to pixels attribute
Texture * LayerSceneGraph::Texture::getGrayScaleFormat |
( |
| ) |
|
Returns another texture which is a gray scale copy of this texture
int LayerSceneGraph::Texture::getHeight |
( |
| ) |
|
Returns texture image height
GLubyte * LayerSceneGraph::Texture::getPixels |
( |
| ) |
|
Returns a GLubyte pointer with RGBA coordinates.
int LayerSceneGraph::Texture::getWidth |
( |
| ) |
|
Returns texture image width
int LayerSceneGraph::Texture::height |
|
private |
GLubyte* LayerSceneGraph::Texture::pixels |
|
private |
int LayerSceneGraph::Texture::width |
|
private |
The documentation for this class was generated from the following files: