Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iModelDataPolygon Struct Reference

One polygon in a model. More...

#include <mdldata.h>

Inheritance diagram for iModelDataPolygon:

iBase List of all members.

Public Methods

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

virtual int GetVertexCount () const=0
 return the number of vertices.

virtual int AddVertex (int Vertex, int Normal, int Color, int Texel)=0
 Add a vertex.

virtual void DeleteVertex (int n)=0
 Delete a vertex.

virtual int GetVertex (int n) const=0
 return the index of a vertex.

virtual void SetVertex (int n, int Index)=0
 set the index of a vertex.

virtual int GetNormal (int n) const=0
 return the index of a normal.

virtual void SetNormal (int n, int Index)=0
 set the index of a normal.

virtual int GetColor (int n) const=0
 return the index of a color.

virtual void SetColor (int n, int Index)=0
 set the index of a color.

virtual int GetTexel (int n) const=0
 return the index of a texel.

virtual void SetTexel (int n, int Index)=0
 set the index of a texel.

virtual iModelDataMaterialGetMaterial () const=0
 return the current material.

virtual void SetMaterial (iModelDataMaterial *m)=0
 set the material.

virtual iModelDataPolygon* Clone () const=0
 Clone this polygon.


Detailed Description

One polygon in a model.

The vertices, normals, colors and texels are only indices for lists in the parent iModelDataObject. In addition, a polygon contains a material.


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