CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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. More...

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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.

Definition at line 267 of file imesh/mdldata.h.


Member Function Documentation

virtual int iModelDataPolygon::AddVertex int    Vertex,
int    Normal,
int    Color,
int    Texel
[pure virtual]
 

Add a vertex.

virtual iModelDataPolygon* iModelDataPolygon::Clone   const [pure virtual]
 

Clone this polygon.

virtual void iModelDataPolygon::DeleteVertex int    n [pure virtual]
 

Delete a vertex.

virtual int iModelDataPolygon::GetColor int    n const [pure virtual]
 

return the index of a color.

virtual iModelDataMaterial* iModelDataPolygon::GetMaterial   const [pure virtual]
 

return the current material.

virtual int iModelDataPolygon::GetNormal int    n const [pure virtual]
 

return the index of a normal.

virtual int iModelDataPolygon::GetTexel int    n const [pure virtual]
 

return the index of a texel.

virtual int iModelDataPolygon::GetVertex int    n const [pure virtual]
 

return the index of a vertex.

virtual int iModelDataPolygon::GetVertexCount   const [pure virtual]
 

return the number of vertices.

virtual iObject* iModelDataPolygon::QueryObject   [pure virtual]
 

Query the iObject for this material.

virtual void iModelDataPolygon::SetColor int    n,
int    Index
[pure virtual]
 

set the index of a color.

virtual void iModelDataPolygon::SetMaterial iModelDataMaterial   m [pure virtual]
 

set the material.

virtual void iModelDataPolygon::SetNormal int    n,
int    Index
[pure virtual]
 

set the index of a normal.

virtual void iModelDataPolygon::SetTexel int    n,
int    Index
[pure virtual]
 

set the index of a texel.

virtual void iModelDataPolygon::SetVertex int    n,
int    Index
[pure virtual]
 

set the index of a vertex.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14