![]() |
Public API Reference |
#include <thing.h>
Inheritance diagram for iThingState:
Public Methods | |
virtual void * | GetPrivateObject ()=0 |
@ UGLY. More... | |
virtual iThingFactoryState * | GetFactory ()=0 |
Get the factory. More... | |
virtual iPolygon3D * | GetPolygon (int idx)=0 |
Get a polygon from set by his index. More... | |
virtual iPolygon3D * | GetPolygon (const char *name)=0 |
Get a polygon from set by name. More... | |
virtual int | FindPolygonIndex (iPolygon3D *polygon) const=0 |
Find the index for a polygon. Returns -1 if polygon cannot be found. More... | |
virtual iPolygon3D * | GetPortalPolygon (int idx) const=0 |
Get the polygon for the given portal (with index). More... | |
virtual const csVector3 & | GetVertexW (int idx) const=0 |
Get the given vertex coordinates in world space. More... | |
virtual const csVector3 * | GetVerticesW () const=0 |
Get the vertex coordinates in world space. More... | |
virtual const csVector3 & | GetVertexC (int idx) const=0 |
Get the given vertex coordinates in camera space. More... | |
virtual const csVector3 * | GetVerticesC () const=0 |
Get the vertex coordinates in camera space. More... | |
virtual int | GetMovingOption () const=0 |
Get the moving option. More... | |
virtual void | SetMovingOption (int opt)=0 |
Control how this thing will be moved. More... | |
virtual iPolygon3D * | IntersectSegment (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr=NULL, bool only_portals=false)=0 |
Intersect a segment with this thing and return the first polygon that is hit. More... | |
virtual void | Prepare ()=0 |
Prepare the thing to be ready for use. More... | |
virtual void | ReplaceMaterial (iMaterialWrapper *oldmat, iMaterialWrapper *newmat)=0 |
Scan all polygons and replace the given material with a new material. More... | |
virtual void | ClearReplacedMaterials ()=0 |
Clear all replaced materials (i.e. More... |
Definition at line 175 of file thing.h.
|
Clear all replaced materials (i.e. reset to default materials from factory). |
|
Find the index for a polygon. Returns -1 if polygon cannot be found.
|
|
Get the factory.
|
|
Get the moving option.
|
|
Get a polygon from set by name.
|
|
Get a polygon from set by his index.
|
|
Get the polygon for the given portal (with index).
|
|
@ UGLY. @ |
|
Get the given vertex coordinates in camera space.
|
|
Get the given vertex coordinates in world space.
|
|
Get the vertex coordinates in camera space.
|
|
Get the vertex coordinates in world space.
|
|
Intersect a segment with this thing and return the first polygon that is hit. If only_portals == true then only portals will be checked. |
|
Prepare the thing to be ready for use. Normally this doesn't have to be called as the engine will call this function automatically as soon as the object is rendered. However, to avoid the (sometimes long) setup time for an object while walking around an application can choose to call this function manually in order to increase load time but decrease the time need to setup things later. |
|
Scan all polygons and replace the given material with a new material. Note that the new material MUST have the same size as the old material! If 'newmat' == NULL then the default from the factory will be used again. Note that 'oldmat' will always be compared from the factory and not from the current material the polygon has! |
|
Control how this thing will be moved. There are currently three options.
|