CrystalSpace

Public API Reference

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

iModelDataPolygon Struct Reference

One polygon in a model. More...

#include <imesh/mdldata.h>

Inheritance diagram for iModelDataPolygon:

iBase csModelDataPolygon List of all members.

Public Member Functions

virtual size_t AddVertex (int Vertex, int Normal, int Color, int Texel)=0
 Add a vertex.
virtual iModelDataPolygonClone () const =0
 Clone this polygon.
virtual void DeleteVertex (size_t n)=0
 Delete a vertex.
virtual int GetColor (size_t n) const =0
 return the index of a color
virtual iModelDataMaterialGetMaterial () const =0
 return the current material
virtual int GetNormal (size_t n) const =0
 return the index of a normal
virtual int GetTexel (size_t n) const =0
 return the index of a texel
virtual int GetVertex (size_t n) const =0
 return the index of a vertex
virtual size_t GetVertexCount () const =0
 return the number of vertices
virtual iObjectQueryObject ()=0
 Query the iObject for this material.
virtual void SetColor (size_t n, int Index)=0
 set the index of a color
virtual void SetMaterial (iModelDataMaterial *m)=0
 set the material
virtual void SetNormal (size_t n, int Index)=0
 set the index of a normal
virtual void SetTexel (size_t n, int Index)=0
 set the index of a texel
virtual void SetVertex (size_t n, int Index)=0
 set the index of a vertex

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 mdldata.h.


Member Function Documentation

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

Add a vertex.

Implemented in csModelDataPolygon.

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

Clone this polygon.

Implemented in csModelDataPolygon.

virtual void iModelDataPolygon::DeleteVertex size_t  n  )  [pure virtual]
 

Delete a vertex.

Implemented in csModelDataPolygon.

virtual int iModelDataPolygon::GetColor size_t  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 size_t  n  )  const [pure virtual]
 

return the index of a normal

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

return the index of a texel

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

return the index of a vertex

virtual size_t iModelDataPolygon::GetVertexCount  )  const [pure virtual]
 

return the number of vertices

Implemented in csModelDataPolygon.

virtual iObject* iModelDataPolygon::QueryObject  )  [pure virtual]
 

Query the iObject for this material.

virtual void iModelDataPolygon::SetColor size_t  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 size_t  n,
int  Index
[pure virtual]
 

set the index of a normal

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

set the index of a texel

virtual void iModelDataPolygon::SetVertex size_t  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.4.4