iGeneralMeshState Struct Reference
This interface describes the API for the general mesh object. More...
#include <genmesh.h>
Inheritance diagram for iGeneralMeshState:

Public Methods | |
virtual void | SetMaterialWrapper (iMaterialWrapper *material)=0 |
Set material of mesh. | |
virtual iMaterialWrapper * | GetMaterialWrapper () const=0 |
Get material of mesh. | |
virtual void | SetMixMode (uint mode)=0 |
Set mix mode. | |
virtual uint | GetMixMode () const=0 |
Get mix mode. | |
virtual void | SetLighting (bool l)=0 |
Set lighting. | |
virtual bool | IsLighting () const=0 |
Is lighting enabled. | |
virtual void | SetColor (const csColor &col)=0 |
Set the color to use. Will be added to the lighting values. | |
virtual const csColor & | GetColor () const=0 |
Get the color. | |
virtual void | SetManualColors (bool m)=0 |
Set manual colors. | |
virtual bool | IsManualColors () const=0 |
Are manual colors enabled? | |
virtual void | SetShadowCasting (bool m)=0 |
Set shadowing. | |
virtual bool | IsShadowCasting () const=0 |
Is shadow casting enabled? | |
virtual void | SetShadowReceiving (bool m)=0 |
Set shadow receiving on. | |
virtual bool | IsShadowReceiving () const=0 |
Is shadow receiving enabled? |
Detailed Description
This interface describes the API for the general mesh object.
Main creators of instances implementing this interface:
- Genmesh mesh object plugin (crystalspace.mesh.object.genmesh)
- iMeshObjectFactory::NewInstance()
- Genmesh Loader plugin (crystalspace.mesh.loader.genmesh)
Definition at line 52 of file genmesh.h.
Member Function Documentation
|
Get the color.
|
|
Get material of mesh.
|
|
Get mix mode.
|
|
Is lighting enabled.
|
|
Are manual colors enabled?
|
|
Is shadow casting enabled?
|
|
Is shadow receiving enabled?
|
|
Set the color to use. Will be added to the lighting values.
|
|
Set lighting.
|
|
Set manual colors. If this is set then lighting will be ignored and so will the color set with SetColor(). In this case you can manipulate the color array manually by calling GetColors(). |
|
Set material of mesh.
|
|
Set mix mode.
|
|
Set shadowing. By default genmesh objects will cast shadows (during the static lighting phase). You can disable this here. |
|
Set shadow receiving on. By default this is disabled in which case the genmesh object will receive all lighting information dynamically but without shadows. If this is enabled then the lighting system resembles more the lighting system with things which static and pseudo-dynamic lighting. In this case there will be shadows on the genmesh instance. |
The documentation for this struct was generated from the following file:
- imesh/genmesh.h
Generated for Crystal Space by doxygen 1.2.18