![]() |
Public API Reference |
#include <mdldata.h>
Inheritance diagram for iModelDataTexture:
Public Methods | |
virtual iObject * | QueryObject ()=0 |
Query the iObject for this texture. More... | |
virtual void | SetFileName (const char *fn)=0 |
Set the file name of the texture. More... | |
virtual const char * | GetFileName () const=0 |
Return the file name of the texture. More... | |
virtual void | SetImage (iImage *image)=0 |
Set the image object. More... | |
virtual iImage * | GetImage () const=0 |
Return the image object. More... | |
virtual void | SetTextureWrapper (iTextureWrapper *th)=0 |
Set the texture wrapper. More... | |
virtual iTextureWrapper * | GetTextureWrapper () const=0 |
Return the texture wrapper. More... | |
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... |
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.
Definition at line 54 of file imesh/mdldata.h.
|
Clone this texture object. Note: The underlying texture or image will not be cloned! Implemented in csModelDataTexture. |
|
Return the file name of the texture.
Implemented in csModelDataTexture. |
|
Return the image object.
|
|
Return the texture wrapper.
|
|
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. Implemented in csModelDataTexture. |
|
Query the iObject for this texture.
|
|
Create a texture wrapper from the given texture list. Requires that an image object exists. Implemented in csModelDataTexture. |
|
Set the file name of the texture.
Implemented in csModelDataTexture. |
|
Set the image object.
|
|
Set the texture wrapper.
|