Project

General

Profile

SO3Engine
SO3MaterialID.cpp
Go to the documentation of this file.
1
11
12namespace SO3
13{
14
15SMaterialID::SMaterialID(SScene* scene, const std::string& materialIdName) : SData(materialIdName)
16{
18 mScene = scene;
19 mWorld = scene->GetPhysicsWorld();
20}
21
22SMaterialID::SMaterialID() : SData("")
23{
24 // Forbiden (private);
25}
26
28{
29 SO3_SAFE_DELETE(O3MaterialID);
30}
31
36
38{
39 return O3MaterialID->getID();
40}
41
46
51
52}
represents a material
int getID() const
get Newton-assigned material ID.
SPhysicWorld * mWorld
SPhysicWorld * GetParentWorld()
OgreNewt::MaterialID * O3MaterialID
OgreNewt::MaterialID * getOgreNewtMaterialID()
SScene * GetParentScene()
OgreNewt::World * GetPhysicWorld()
SPhysicWorld * GetPhysicsWorld()