PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
LayerSceneGraph::Texture Class Reference

#include <Texture.h>

Public Member Functions

 Texture (GLubyte *pxls, int w, int h)
 
virtual ~Texture ()
 
GLubyte * getPixels ()
 
int getWidth ()
 
int getHeight ()
 
TexturegetGrayScaleFormat ()
 

Private Attributes

int width
 
int height
 
GLubyte * pixels
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

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: