From: Oliver O. <fr...@us...> - 2007-05-10 10:43:52
|
Update of /cvsroot/simspark/simspark/spark/kerosin/sceneserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24925 Modified Files: Tag: projectx staticmesh.h Log Message: - added methods to set/get flags if a mesh based object should cast shadows. This can be used by the graphics engine to disable/enable shadows for specific objects. The default value is "enabled" for all mesh based objects. Index: staticmesh.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/staticmesh.h,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -C2 -d -r1.1.4.1 -r1.1.4.2 *** staticmesh.h 8 May 2007 03:34:25 -0000 1.1.4.1 --- staticmesh.h 10 May 2007 10:43:48 -0000 1.1.4.2 *************** *** 85,88 **** --- 85,100 ---- /** returns the materials used to render the mesh */ const TMaterialList& GetMaterials() const; + + /** a hint for the graphics engine if the mesh casts shadows or now. + By default, StaticMeshes cast shadows. The respective graphics engine + might ignore this flag if the GE cannot cast shadows. + */ + bool CastShadows() const; + + /** set the flag if the mesh should cast shadows or not. + The actual graphics engine might ignore this flag if it cannot render + shadows or disables shadows globally. + */ + void SetCastShadows(bool shadows); // // Members *************** *** 103,106 **** --- 115,121 ---- /** the list of parameters the mesh was loaded with */ zeitgeist::ParameterList mMeshParameter; + + //! the flag if the mesh should cast shadows + bool mCastShadows; }; |