iModelDataPolygon Struct Reference
One polygon in a model. More...
#include <imesh/mdldata.h>
Inheritance diagram for iModelDataPolygon:

Public Member Functions | |
| virtual iObject * | QueryObject ()=0 |
| Query the iObject for this material. | |
| virtual size_t | GetVertexCount () const =0 |
| return the number of vertices | |
| virtual size_t | AddVertex (int Vertex, int Normal, int Color, int Texel)=0 |
| Add a vertex. | |
| virtual void | DeleteVertex (size_t n)=0 |
| Delete a vertex. | |
| virtual int | GetVertex (size_t n) const =0 |
| return the index of a vertex | |
| virtual void | SetVertex (size_t n, int Index)=0 |
| set the index of a vertex | |
| virtual int | GetNormal (size_t n) const =0 |
| return the index of a normal | |
| virtual void | SetNormal (size_t n, int Index)=0 |
| set the index of a normal | |
| virtual int | GetColor (size_t n) const =0 |
| return the index of a color | |
| virtual void | SetColor (size_t n, int Index)=0 |
| set the index of a color | |
| virtual int | GetTexel (size_t n) const =0 |
| return the index of a texel | |
| virtual void | SetTexel (size_t n, int Index)=0 |
| set the index of a texel | |
| virtual iModelDataMaterial * | GetMaterial () 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.
Definition at line 266 of file mdldata.h.
Member Function Documentation
|
||||||||||||||||||||
|
Add a vertex.
Implemented in csModelDataPolygon. |
|
|
Clone this polygon.
Implemented in csModelDataPolygon. |
|
|
Delete a vertex.
Implemented in csModelDataPolygon. |
|
|
return the index of a color
|
|
|
return the current material
|
|
|
return the index of a normal
|
|
|
return the index of a texel
|
|
|
return the index of a vertex
|
|
|
return the number of vertices
Implemented in csModelDataPolygon. |
|
|
Query the iObject for this material.
|
|
||||||||||||
|
set the index of a color
|
|
|
set the material
|
|
||||||||||||
|
set the index of a normal
|
|
||||||||||||
|
set the index of a texel
|
|
||||||||||||
|
set the index of a vertex
|
The documentation for this struct was generated from the following file:
- imesh/mdldata.h
Generated for Crystal Space by doxygen 1.3.9.1
