class csPolygonTemplate A csPolygonTemplate is used by a ThingTemplate to describe a template for a polygon
| | AddVertex (int v) |
| | csPolygonTemplate (csThingTemplate* parent, char* name, csTextureHandle* texture = NULL) |
| | GetFlatColor () Get the flat color for this polygon. |
| | GetMaxVertices () |
| | GetName () |
| | GetNumVertices () |
| | GetTexture () |
| | GetTextureMatrix () |
| | GetTextureVector () |
| | GetUVCoords () Get the pointer to the vertex uv coordinates. |
| | GetVerticesIdx () |
| | IsLighted () |
| | IsMipmapped () |
| | PlaneNormal (float* A, float* B, float* C) Compute the plane normal of this polygon. |
| | ResetFlatColor () Reset flat color (i.e. use texturing again). |
| | ResetUV () Reset UV coordinate array. |
| | SetFlatColor (csColor& fc) Set the flat color for this polygon. |
| | SetFlatColor (float r, float g, float b) Set the flat color for this polygon. |
| | SetGouraud () Enable gouraud shading. |
| | SetLighting (int yes) |
| | SetMipmapping (int yes) |
| | SetTexture (csTextureHandle* texture) |
| | SetTextureSpace (csMatrix3& tx_matrix, csVector3& tx_vector) Set the transformation from object to texture space. |
| | SetUV (int i, float u, float v) Set UV coordinate for specified vertex. |
| | Transform (csMatrix3& m, csVector3& v) Transform the texture tranformation using the given matrix/vector. |
| | UseFlatColor () Return true if flat color is used (instead of texture). |
| | UseGouraud () Is gouraud shading used? |
| | ~csPolygonTemplate () |
| | flat_color Flat color to use instead of texture map. |
| | m_obj2tex The transformation from object space to texture space. |
| | max_vertices Maximum number of vertices. |
| | name [30] |
| | no_lighting Should this polygon be lighted? |
| | no_mipmap Should mipmapping be used for this polygon? |
| | num_vertices Number of vertices for this polygon. |
| | parent |
| | texture The texture used for this polygon. |
| | use_flat_color True if flat_color should be used. |
| | use_gouraud True if gouraud shading used. |
| | uv_coords Optional uv coordinates. |
| | v_obj2tex The transformation from object space to texture space. |
| | vertices_idx A table of indices into the vertices of the parent Polygon |
A csPolygonTemplate is used by a ThingTemplate to describe a template for a polygon
int num_vertices
int max_vertices
char name[30]
int no_mipmap
int no_lighting
csTextureHandle* texture
csMatrix3 m_obj2tex
csVector3 v_obj2tex
csVector2* uv_coords
csThingTemplate* parent
csColor flat_color
bool use_flat_color
bool use_gouraud
csPolygonTemplate(csThingTemplate* parent, char* name, csTextureHandle* texture = NULL)
virtual ~csPolygonTemplate()
int GetMaxVertices()
int GetNumVertices()
int* GetVerticesIdx()
void AddVertex(int v)
char* GetName()
void SetUV(int i, float u, float v)
void ResetUV()
csVector2* GetUVCoords()
bool UseFlatColor()
csColor& GetFlatColor()
void SetGouraud()
bool UseGouraud()
void SetFlatColor(float r, float g, float b)
void SetFlatColor(csColor& fc)
void ResetFlatColor()
void PlaneNormal(float* A, float* B, float* C)
void SetTexture(csTextureHandle* texture)
void SetTextureSpace(csMatrix3& tx_matrix, csVector3& tx_vector)
void Transform(csMatrix3& m, csVector3& v)
csTextureHandle* GetTexture()
csMatrix3& GetTextureMatrix()
csVector3& GetTextureVector()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de