ImageHandle Class Reference

Holds information about an OpenGL RGBA image. More...

#include <Texture.h>

List of all members.

Public Member Functions

 ImageHandle ()
 ~ImageHandle ()
void CopyData (char *dest)
 Copies GetWidth()*GetHeight()*GetBlockSize() bytes of data from the image data to the memory pointed to by dest.
short GetWidth ()
 Get the width of the current image.
short GetHeight ()
 Get the height of the current image.
short GetBlockSize ()
 Get the block size of the current image.

Protected Attributes

char * data
short width
short height
size_t blockSize

Friends

class Texture


Detailed Description

Holds information about an OpenGL RGBA image.

Author:
Daniel Aarno <macbishop@users.sf.net>
Version:
0.1.0


Constructor & Destructor Documentation

ImageHandle::ImageHandle (  )  [inline]

ImageHandle::~ImageHandle (  )  [inline]


Member Function Documentation

void ImageHandle::CopyData ( char *  dest  ) 

Copies GetWidth()*GetHeight()*GetBlockSize() bytes of data from the image data to the memory pointed to by dest.

Parameters:
dest A pointer to previously allocated data of at least size GetWidth()*GetHeight()*GetBlockSize() to hold the image data.

short ImageHandle::GetBlockSize (  )  [inline]

Get the block size of the current image.

short ImageHandle::GetHeight (  )  [inline]

Get the height of the current image.

short ImageHandle::GetWidth (  )  [inline]

Get the width of the current image.


Friends And Related Function Documentation

friend class Texture [friend]


Member Data Documentation

size_t ImageHandle::blockSize [protected]

char* ImageHandle::data [protected]

short ImageHandle::height [protected]

short ImageHandle::width [protected]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:26 2007 for MetalWarriors by  doxygen 1.4.7