#include <thing.h>
Inheritance diagram for iThingState:
Public Methods | |
virtual void* | GetPrivateObject ()=0 |
@ UGLY. More... | |
virtual iObject* | QueryObject ()=0 |
Get the object for this thing. | |
virtual void | CompressVertices ()=0 |
Compress the vertex table so that all nearly identical vertices are compressed. More... | |
virtual int | GetPolygonCount ()=0 |
Query number of polygons in this thing. | |
virtual iPolygon3D* | GetPolygon (int idx)=0 |
Get a polygon from set by his index. | |
virtual iPolygon3D* | GetPolygon (const char *name)=0 |
Get a polygon from set by name. | |
virtual iPolygon3D* | CreatePolygon (const char *iName=NULL)=0 |
Create a new polygon and return a pointer to it. | |
virtual int | GetPortalCount ()=0 |
Query number of portals in this thing. | |
virtual iPortal* | GetPortal (int idx)=0 |
Get a portal. | |
virtual iPolygon3D* | GetPortalPolygon (int idx)=0 |
Get the polygon for the given portal (with index). | |
virtual int | GetVertexCount ()=0 |
Query number of vertices in set. | |
virtual const csVector3& | GetVertex (int idx) const=0 |
Get the given vertex coordinates in object space. | |
virtual const csVector3* | GetVertices () const=0 |
Get the vertiex coordinates in object space. | |
virtual const csVector3& | GetVertexW (int idx) const=0 |
Get the given vertex coordinates in world space. | |
virtual const csVector3* | GetVerticesW () const=0 |
Get the vertex coordinates in world space. | |
virtual const csVector3& | GetVertexC (int idx) const=0 |
Get the given vertex coordinates in camera space. | |
virtual const csVector3* | GetVerticesC () const=0 |
Get the vertex coordinates in camera space. | |
virtual int | CreateVertex (const csVector3 &iVertex)=0 |
Create a vertex given his object-space coords and return his index. | |
virtual void | CheckFrustum (iFrustumView *fview, iMovable *movable)=0 |
Check frustum visibility on this thing. More... | |
virtual csFlags& | GetFlags ()=0 |
Set thing flags (see CS_THING_... values above). | |
virtual int | GetMovingOption ()=0 |
Get the moving option. | |
virtual void | SetMovingOption (int opt)=0 |
Control how this thing will be moved. More... | |
virtual const csVector3& | GetCurvesCenter () const=0 |
Get the center of the curves. | |
virtual void | SetCurvesCenter (const csVector3 &cen)=0 |
Set the center of the curves. | |
virtual float | GetCurvesScale ()=0 |
Get the scale of the curves. | |
virtual void | SetCurvesScale (float scale)=0 |
Set the scale of the curves. | |
virtual void | AddCurveVertex (const csVector3 &v, const csVector2 &uv)=0 |
Add a curve vertex. | |
virtual int | GetCurveCount ()=0 |
Get the number of curves. | |
virtual iCurve* | GetCurve (int idx)=0 |
Get the curve. | |
virtual int | GetCurveVertexCount ()=0 |
Get the number of curve vertices. | |
virtual csVector3& | CurveVertex (int i)=0 |
Get the specified curve vertex. | |
virtual csVector3* | GetCurveVertices ()=0 |
Get the curve vertices. | |
virtual csVector2& | CurveTexel (int i)=0 |
Get the specified curve texture coordinate (texel). | |
virtual iCurve* | CreateCurve (iCurveTemplate *tmpl)=0 |
Create a new curve for this thing from the given template. | |
virtual void | MergeTemplate (iThingState *tpl, iMaterialWrapper *default_material=NULL, csVector3 *shift=NULL, csMatrix3 *transform=NULL)=0 |
Add polygons and vertices from the specified thing (seen as template). | |
virtual void | ReplaceMaterials (iMaterialList *matList, const char *prefix)=0 |
Replace the materials in this thing with new materials that are prefixed by some name. More... | |
virtual bool | HasFog () const=0 |
Has this thing fog? | |
virtual csFog* | GetFog () const=0 |
Return the fog structure (even if fog is disabled). |
|
Check frustum visibility on this thing. First initialize the 2D culler cube. @@ Does this belong here? |
|
Compress the vertex table so that all nearly identical vertices are compressed. The polygons in the set are automatically adapted. This function can be called at any time in the creation of the object and it can be called multiple time but it normally only makes sense to call this function after you have finished adding all polygons and all vertices. Note that calling this function will make the camera vertex array invalid. |
|
@ UGLY. @ |
|
Replace the materials in this thing with new materials that are prefixed by some name. For example, if a polygon in this thing uses a material 'blabla' and the prefix is 'pref' then the new material that will be used is called 'pref_blabla'. If that material cannot be found then the original material will be used. |
|
Control how this thing will be moved. There are currently three options.
|