Update of /cvsroot/simspark/simspark/spark/kerosin/sceneserver
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9596
Modified Files:
Tag: projectx
staticmesh.h
Log Message:
- added method to set flag if an external mesh should be used (for external GE)
- added method to set external mesh name (for external GE)
- added method to set external mesh scale
Index: staticmesh.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/staticmesh.h,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -C2 -d -r1.1.4.2 -r1.1.4.3
*** staticmesh.h 10 May 2007 10:43:48 -0000 1.1.4.2
--- staticmesh.h 17 Jun 2007 08:41:18 -0000 1.1.4.3
***************
*** 97,100 ****
--- 97,126 ----
*/
void SetCastShadows(bool shadows);
+
+ /** Set the flag if the GE should use an external mesh for rendering.
+ By default, using external meshes is switched off. For this to work,
+ the external mesh name has to be set.
+ */
+ void SetUseExternalMesh(bool external = true);
+ /** Get the flag if the GE should use an external mesh for rendering.
+ If set to true, the GE can use a different (possibly more advanced)
+ mesh. The hint for the kind of external mesh should be given by the
+ Get/SetExternalMeshName() methods of this class.
+ */
+ bool UseExternalMesh() const;
+ /** Set the name of the external mesh.
+ \string name the external mesh name
+ */
+ void SetExternalMeshName(const std::string& name);
+ /** Get the name of the external mesh to use.
+ \return the name
+ */
+ const std::string& GetExternalMeshName() const;
+ //! Set an additional scale for the external mesh
+ void SetExternalMeshScale(const salt::Vector3f& scale);
+ /** Get the external mesh scale.
+ @return the external mesh scale */
+ const salt::Vector3f& ExternalMeshScale() const;
+
//
// Members
***************
*** 118,121 ****
--- 144,154 ----
//! the flag if the mesh should cast shadows
bool mCastShadows;
+
+ //! the flag if the GE can use an external mesh
+ bool mUseExternalMesh;
+ //! the external mesh name
+ std::string mExternalMeshName;
+ //! additional scale factors along each axis for external meshes
+ salt::Vector3f mExternalMeshScale;
};
|