class csPolygonTemplate A csPolygonTemplate is used by a ThingTemplate to describe a template for a 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