Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

X3DTK::Image Class Reference
[image]

Class declared in <X3DTK/kernel.h> providing an abstract factory for the different image formats. More...

List of all members.

Public Member Functions


Detailed Description

Class declared in <X3DTK/kernel.h> providing an abstract factory for the different image formats.

This class is defined to be user friendly for loading texture images in OpenGL.


Constructor & Destructor Documentation

X3DTK::Image::Image  ) 
 

Constructor.

X3DTK::Image::Image const char *  fileName  ) 
 

Constructor with parameter.

X3DTK::Image::~Image  ) 
 

Destructor.


Member Function Documentation

unsigned char* X3DTK::Image::getData  )  const [inline]
 

Gets the data array.

int X3DTK::Image::getGLType  )  const [inline]
 

Gets the GL type of pixels.

unsigned short X3DTK::Image::getHeight  )  const [inline]
 

Gets the height.

unsigned short X3DTK::Image::getWidth  )  const [inline]
 

Gets the width.

bool X3DTK::Image::load const char *  fileName  ) 
 

Loads the file.

void X3DTK::Image::resize unsigned short  width,
unsigned short  height
 

Resizes the memory array to width*height.

void X3DTK::Image::resizeGL float &  textureTransform[16]  ) 
 

Resizes the memory array to a power of two and fills textureTransform, the transformation to apply in OpenGL to draw the good texture.


Generated on Wed Apr 7 12:15:28 2004 for X3DToolKit by doxygen 1.3.3