From: Oliver O. <fr...@us...> - 2007-06-17 08:40:29
|
Update of /cvsroot/simspark/simspark/spark/kerosin/sceneserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9216 Modified Files: Tag: projectx staticmesh.cpp 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.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/staticmesh.cpp,v retrieving revision 1.2.2.3.2.2 retrieving revision 1.2.2.3.2.3 diff -C2 -d -r1.2.2.3.2.2 -r1.2.2.3.2.3 *** staticmesh.cpp 10 May 2007 10:44:25 -0000 1.2.2.3.2.2 --- staticmesh.cpp 17 Jun 2007 08:40:26 -0000 1.2.2.3.2.3 *************** *** 33,37 **** using namespace oxygen; ! StaticMesh::StaticMesh() : mScale(1.0f,1.0f,1.0f), mCastShadows(true) { } --- 33,41 ---- using namespace oxygen; ! StaticMesh::StaticMesh() : mScale(1.0f,1.0f,1.0f), ! mCastShadows(true), ! mUseExternalMesh(false), ! mExternalMeshName(""), ! mExternalMeshScale(1.0f,1.0f,1.0f) { } *************** *** 247,248 **** --- 251,288 ---- mCastShadows = shadows; } + + void + StaticMesh::SetUseExternalMesh(bool external) + { + mUseExternalMesh = external; + } + + bool + StaticMesh::UseExternalMesh() const + { + return mUseExternalMesh; + } + + void + StaticMesh::SetExternalMeshName(const std::string& name) + { + mExternalMeshName = name; + } + + const std::string& + StaticMesh::GetExternalMeshName() const + { + return mExternalMeshName; + } + + void + StaticMesh::SetExternalMeshScale(const salt::Vector3f& scale) + { + mExternalMeshScale = scale; + } + + const salt::Vector3f& + StaticMesh::ExternalMeshScale() const + { + return mExternalMeshScale; + } |