iThingState Struct Reference
This is the state interface to access the internals of a thing mesh object. More...
#include <imesh/thing.h>
Inheritance diagram for iThingState:

Public Member Functions | |
virtual iThingFactoryState * | GetFactory ()=0 |
Get the factory. | |
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 int | GetMovingOption () const =0 |
Get the moving option. | |
virtual void | SetMovingOption (int opt)=0 |
Control how this thing will be moved. | |
virtual void | Prepare ()=0 |
Prepare the thing to be ready for use. | |
virtual void | Unprepare ()=0 |
Reset the prepare flag so that this Thing can be re-prepared. | |
virtual void | ReplaceMaterial (iMaterialWrapper *oldmat, iMaterialWrapper *newmat)=0 |
Scan all polygons and replace the given material with a new material. | |
virtual void | ClearReplacedMaterials ()=0 |
Clear all replaced materials (i.e. | |
virtual void | SetMixMode (uint mode)=0 |
Set mix mode. | |
virtual uint | GetMixMode () const =0 |
Get mix mode. | |
virtual csPtr< iPolygonHandle > | CreatePolygonHandle (int polygon_idx)=0 |
Create a polygon handle that can be used to refer to some polygon. | |
virtual const csPlane3 & | GetPolygonWorldPlane (int polygon_idx)=0 |
Get world space plane of the specified polygon. |
Detailed Description
This is the state interface to access the internals of a thing mesh object.Main creators of instances implementing this interface:
- Thing mesh object plugin (crystalspace.mesh.object.thing)
- iMeshObjectFactory::NewInstance()
- Thing Loader plugin (crystalspace.mesh.loader.thing)
Definition at line 684 of file thing.h.
Member Function Documentation
|
Clear all replaced materials (i.e. reset to default materials from factory). |
|
Create a polygon handle that can be used to refer to some polygon. This can be useful in situations where an SCF handle is required to be able to reference a polygon. The thing will not keep a reference to this handle so you are fully responsible for it after calling this function.
|
|
Get the factory.
|
|
Get mix mode.
|
|
Get the moving option.
|
|
Get world space plane of the specified polygon.
|
|
Get the given vertex coordinates in world space.
|
|
Get the vertex coordinates in world space.
|
|
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' == 0 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! |
|
Set mix mode.
|
|
Control how this thing will be moved. There are currently two options.
Note: it is no longer needed to manually set this option. By default things will use CS_THING_MOVE_NEVER and they will automatically switch to the slightly less efficient CS_THING_MOVE_OCCASIONAL if needed. |
|
Reset the prepare flag so that this Thing can be re-prepared. Among other things this will allow cached lightmaps to be recalculated. |
The documentation for this struct was generated from the following file:
- imesh/thing.h
Generated for Crystal Space by doxygen 1.3.9.1