CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iGeneralMeshState Struct Reference

This interface describes the API for the general mesh object. More...

#include <genmesh.h>

Inheritance diagram for iGeneralMeshState:

iBase List of all members.

Public Methods

virtual void SetMaterialWrapper (iMaterialWrapper *material)=0
 Set material of mesh. More...

virtual iMaterialWrapperGetMaterialWrapper () const=0
 Get material of mesh. More...

virtual void SetMixMode (uint mode)=0
 Set mix mode. More...

virtual uint GetMixMode () const=0
 Get mix mode. More...

virtual void SetLighting (bool l)=0
 Set lighting. More...

virtual bool IsLighting () const=0
 Is lighting enabled. More...

virtual void SetColor (const csColor &col)=0
 Set the color to use. Will be added to the lighting values. More...

virtual csColor GetColor () const=0
 Get the color. More...

virtual void SetManualColors (bool m)=0
 Set manual colors. More...

virtual bool IsManualColors () const=0
 Are manual colors enabled? More...

virtual void SetShadowCasting (bool m)=0
 Set shadowing. More...

virtual bool IsShadowCasting () const=0
 Is shadow casting enabled? More...

virtual void SetShadowReceiving (bool m)=0
 Set shadow receiving on. More...

virtual bool IsShadowReceiving () const=0
 Is shadow receiving enabled? More...


Detailed Description

This interface describes the API for the general mesh object.

Definition at line 38 of file genmesh.h.


Member Function Documentation

virtual csColor iGeneralMeshState::GetColor   const [pure virtual]
 

Get the color.

virtual iMaterialWrapper* iGeneralMeshState::GetMaterialWrapper   const [pure virtual]
 

Get material of mesh.

virtual uint iGeneralMeshState::GetMixMode   const [pure virtual]
 

Get mix mode.

virtual bool iGeneralMeshState::IsLighting   const [pure virtual]
 

Is lighting enabled.

virtual bool iGeneralMeshState::IsManualColors   const [pure virtual]
 

Are manual colors enabled?

virtual bool iGeneralMeshState::IsShadowCasting   const [pure virtual]
 

Is shadow casting enabled?

virtual bool iGeneralMeshState::IsShadowReceiving   const [pure virtual]
 

Is shadow receiving enabled?

virtual void iGeneralMeshState::SetColor const csColor   col [pure virtual]
 

Set the color to use. Will be added to the lighting values.

virtual void iGeneralMeshState::SetLighting bool    l [pure virtual]
 

Set lighting.

virtual void iGeneralMeshState::SetManualColors bool    m [pure virtual]
 

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().

virtual void iGeneralMeshState::SetMaterialWrapper iMaterialWrapper   material [pure virtual]
 

Set material of mesh.

virtual void iGeneralMeshState::SetMixMode uint    mode [pure virtual]
 

Set mix mode.

virtual void iGeneralMeshState::SetShadowCasting bool    m [pure virtual]
 

Set shadowing.

By default genmesh objects will cast shadows (during the static lighting phase). You can disable this here.

virtual void iGeneralMeshState::SetShadowReceiving bool    m [pure virtual]
 

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:
Generated for Crystal Space by doxygen 1.2.14