![]() |
Public API Reference |
#include <thing.h>
Inheritance diagram for iThingFactoryState:
Public Methods | |
virtual void * | GetPrivateObject ()=0 |
@ UGLY. More... | |
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. More... | |
virtual iPolygon3DStatic * | GetPolygon (int idx)=0 |
Get a polygon from set by his index. More... | |
virtual iPolygon3DStatic * | GetPolygon (const char *name)=0 |
Get a polygon from set by name. More... | |
virtual iPolygon3DStatic * | CreatePolygon (const char *iName=NULL)=0 |
Create a new polygon and return a pointer to it. More... | |
virtual int | FindPolygonIndex (iPolygon3DStatic *polygon) const=0 |
Find the index for a polygon. Returns -1 if polygon cannot be found. More... | |
virtual void | RemovePolygon (int idx)=0 |
Delete a polygon given an index. More... | |
virtual void | RemovePolygons ()=0 |
Delete all polygons. More... | |
virtual int | GetPortalCount () const=0 |
Query number of portals in this thing. More... | |
virtual iPortal * | GetPortal (int idx) const=0 |
Get a portal. More... | |
virtual iPolygon3DStatic * | GetPortalPolygon (int idx) const=0 |
Get the polygon for the given portal (with index). More... | |
virtual int | GetVertexCount () const=0 |
Query number of vertices in set. More... | |
virtual const csVector3 & | GetVertex (int idx) const=0 |
Get the given vertex coordinates in object space. More... | |
virtual const csVector3 * | GetVertices () const=0 |
Get the vertex coordinates in object space. More... | |
virtual int | CreateVertex (const csVector3 &vt)=0 |
Create a vertex given his object-space coords and return his index. More... | |
virtual void | SetVertex (int idx, const csVector3 &vt)=0 |
Set the object space vertices for a given vertex. More... | |
virtual void | DeleteVertex (int idx)=0 |
Delete a vertex. More... | |
virtual void | DeleteVertices (int from, int to)=0 |
Delete a range of vertices (inclusive). More... | |
virtual csFlags & | GetFlags ()=0 |
Set thing flags (see CS_THING_... values above). More... | |
virtual iPolygon3DStatic * | 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 | SetSmoothingFlag (bool smoothing)=0 |
Sets the smoothing flag. More... | |
virtual bool | GetSmoothingFlag ()=0 |
Gets the smoothing flag. More... | |
virtual csVector3 * | GetNormals ()=0 |
Gets the normals. More... | |
virtual float | GetCosinusFactor () const=0 |
Get cosinus factor. More... | |
virtual void | SetCosinusFactor (float cosfact)=0 |
Set cosinus factor. More... |
Definition at line 66 of file thing.h.
|
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. |
|
Create a new polygon and return a pointer to it.
|
|
Create a vertex given his object-space coords and return his index.
|
|
Delete a vertex. Warning this will invalidate all polygons that use vertices after this vertex because their vertex indices will no longer be ok. |
|
Delete a range of vertices (inclusive). Warning this will invalidate all polygons that use vertices after these vertices because their vertex indices will no longer be ok. This function does bounds-checking so an easy way to delete all vertices is DeleteVertices(0,1000000000). |
|
Find the index for a polygon. Returns -1 if polygon cannot be found.
|
|
Get cosinus factor.
|
|
Set thing flags (see CS_THING_... values above).
|
|
Gets the normals.
|
|
Get a polygon from set by name.
|
|
Get a polygon from set by his index.
|
|
Query number of polygons in this thing.
|
|
Get a portal.
|
|
Query number of portals in this thing.
|
|
Get the polygon for the given portal (with index).
|
|
@ UGLY. @ |
|
Gets the smoothing flag.
|
|
Get the given vertex coordinates in object space.
|
|
Query number of vertices in set.
|
|
Get the vertex coordinates in object 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. |
|
Delete a polygon given an index.
|
|
Delete all polygons.
|
|
Set cosinus factor. This cosinus factor controls how lighting affects the polygons relative to the angle. If no value is set here then the default is used. |
|
Sets the smoothing flag.
|
|
Set the object space vertices for a given vertex.
|