Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iModelDataTexture Struct Reference

This structure contains the information about a texture for an imported model. More...

#include <mdldata.h>

Inheritance diagram for iModelDataTexture:

iBase List of all members.

Public Methods

virtual iObjectQueryObject ()=0
 Query the iObject for this texture.

virtual void SetFileName (const char *fn)=0
 Set the file name of the texture.

virtual const char* GetFileName () const=0
 Return the file name of the texture.

virtual void SetImage (iImage *image)=0
 Set the image object.

virtual iImageGetImage () const=0
 Return the image object.

virtual void SetTextureWrapper (iTextureWrapper *th)=0
 Set the texture wrapper.

virtual iTextureWrapperGetTextureWrapper () const=0
 Return the texture wrapper.

virtual void LoadImage (iVFS *VFS, iImageIO *ImageIO, int Format)=0
 Load the image from a file with the current filename (i.e. More...

virtual void Register (iTextureList *tl)=0
 Create a texture wrapper from the given texture list. More...

virtual iModelDataTexture* Clone () const=0
 Clone this texture object. More...


Detailed Description

This structure contains the information about a texture for an imported model.

There are three possible types of representation for a texture: As a file name, as an iImage or as a texture wrapper. The model data structures will not convert between them automatically, but some convenience functions are included to make conversion easier.

As an example, exporting to a model file which does not contain the textures themselves but only their file name will require that the file name is set. Exporting to a model file which contains the textures directly will contain an iImage to work. Exporting to a mesh object will require a texture wrapper.


Member Function Documentation

iModelDataTexture * iModelDataTexture::Clone ( ) const [pure virtual]
 

Clone this texture object.

Note: The underlying texture or image will not be cloned!

void iModelDataTexture::LoadImage ( iVFS * VFS,
iImageIO * ImageIO,
int Format ) [pure virtual]
 

Load the image from a file with the current filename (i.e.

this texture must have a file name) from the CWD of the given file system. Note: This leaves the texture wrapper untouched.

void iModelDataTexture::Register ( iTextureList * tl ) [pure virtual]
 

Create a texture wrapper from the given texture list.

Requires that an image object exists.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000