In file include/csengine/thingtpl.h:

class csThingTemplate : public csObject

This class represents a template for a Thing

Inheritance:


Public Fields

csVector3 curves_center
Center of thing to determine distance from
float curves_scale
the curves are tesselated)

Public Methods

void AddCurveVertex(csVector3& v, csVector2& t)
void AddPolygon(csPolygonTemplate* p)
Add a polygon template to this thing template.
void AddVertex(const csVector3& v)
Add a vertex to this template.
void AddVertex(float x, float y, float z)
Add a vertex to this template.
csThingTemplate()
csVector2& CurveTexel(int i)
csVector3& CurveVertex(int i)
csFog& GetFog()
Return fog structure.
int GetNumCurveVertices()
int GetNumPolygon()
int GetNumVertices()
csPolygonTemplate* GetPolygon(int i)
bool HasFog()
Return true if this has fog.
csVector3& Vtex(int i)
virtual ~csThingTemplate()

Public

scale param (the larger this param it, the more
Global thing parameters used for determining tesselation resolution

Private Fields

csVector2* curve_texels
Texture coords of curve vertices
csVector3* curve_vertices
Vertices to be used by curves
csCurveTemplate** curves
List of curve templates
csFog fog
Fog structure.
int max_curve_vertices
Maximum number of vertices.
int max_curves
Maximum number of polygons.
int max_polygon
Maximum number of polygons.
int max_vertices
Maximum number of vertices.
int num_curve_vertices
Number of vertices.
int num_curves
Number of curves.
int num_polygon
Number of polygons.
int num_vertices
Number of vertices.
csPolygonTemplate** polygon
List of polygontemplates
csVector3* vertices
Vertices of this template.

Inherited from csObject:

Public Methods

CS_ID GetID()
csObject* GetObj(const csIdType& objtype)
virtual csObject* GetObjectParent()
void ObjAdd(csObject* obj)
csObjIterator ObjGet(const csIdType& objtype)
void ObjRelease(csObject* obj)
void ObjRemove(csObject* obj)

Private Fields

CS_ID csid_value
csObjTree* objtree

Private Methods

virtual void SetObjectParent(csObject* parent)

Inherited from csBase:


Documentation

This class represents a template for a Thing. Using this template one can construct a Thing later.
csVector3* vertices
Vertices of this template.

int num_vertices
Number of vertices.

int max_vertices
Maximum number of vertices.

csPolygonTemplate** polygon
List of polygontemplates

int num_polygon
Number of polygons.

int max_polygon
Maximum number of polygons.

csCurveTemplate** curves
List of curve templates

int num_curves
Number of curves.

int max_curves
Maximum number of polygons.

csVector3* curve_vertices
Vertices to be used by curves

csVector2* curve_texels
Texture coords of curve vertices

int num_curve_vertices
Number of vertices.

int max_curve_vertices
Maximum number of vertices.

csFog fog
Fog structure.

Global thing parameters used for determining tesselation resolution

csVector3 curves_center
Center of thing to determine distance from

scale param (the larger this param it, the more

float curves_scale
the curves are tesselated)

void AddVertex(float x, float y, float z)
Add a vertex to this template.

void AddVertex(const csVector3& v)
Add a vertex to this template.

void AddPolygon(csPolygonTemplate* p)
Add a polygon template to this thing template.

int GetNumCurveVertices()

csVector3& CurveVertex(int i)

csVector2& CurveTexel(int i)

void AddCurveVertex(csVector3& v, csVector2& t)

csThingTemplate()

virtual ~csThingTemplate()

int GetNumVertices()

csVector3& Vtex(int i)

int GetNumPolygon()

csPolygonTemplate* GetPolygon(int i)

bool HasFog()
Return true if this has fog.

csFog& GetFog()
Return fog structure.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de