SO3Engine
include
SO3PhysicGraph
SO3MaterialID.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OpenSpace3D
4
For the latest info, see http://www.openspace3d.com
5
6
Copyright (c) 2012 I-maginer
7
8
This program is free software; you can redistribute it and/or modify it under
9
the terms of the GNU Lesser General Public License as published by the Free Software
10
Foundation; either version 2 of the License, or (at your option) any later
11
version.
12
13
This program is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17
You should have received a copy of the GNU Lesser General Public License along with
18
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20
http://www.gnu.org/copyleft/lesser.txt
21
22
-----------------------------------------------------------------------------
23
*/
24
25
/*
26
SO3MaterialID.h header
27
28
MaterialID Class
29
30
by Mehdi Saleh
31
32
*/
33
34
#ifndef __SO3MATERIALID_H__
35
#define __SO3MATERIALID_H__
36
37
#include "
SCOLBasic/SO3Prerequisites.h
"
38
#include "
SCOLBasic/SO3DataScol.h
"
39
#include <
External/ogrenewt/OgreNewt.h
>
40
41
namespace
SO3
42
{
43
44
class
SMaterialID
:
public
SData
45
{
46
public
:
47
protected
:
48
OgreNewt::MaterialID
*
O3MaterialID
;
49
SScene
*
mScene
;
50
SPhysicWorld
*
mWorld
;
51
private
:
52
53
public
:
56
SMaterialID
(
SScene
* scene,
const
std::string& materialIdName);
57
60
~SMaterialID
();
61
64
OgreNewt::MaterialID
*
getOgreNewtMaterialID
();
65
68
int
getID
();
69
72
SScene
*
GetParentScene
();
73
76
SPhysicWorld
*
GetParentWorld
();
77
protected
:
78
private
:
82
SMaterialID
();
83
};
84
85
}
86
87
#endif
OgreNewt.h
SO3DataScol.h
SO3Prerequisites.h
librairies include
OgreNewt::MaterialID
represents a material
Definition
OgreNewt_MaterialID.h:25
SO3::SData
Definition
SO3DataScol.h:41
SO3::SMaterialID
Definition
SO3MaterialID.h:45
SO3::SMaterialID::mScene
SScene * mScene
Definition
SO3MaterialID.h:49
SO3::SMaterialID::mWorld
SPhysicWorld * mWorld
Definition
SO3MaterialID.h:50
SO3::SMaterialID::~SMaterialID
~SMaterialID()
Definition
SO3MaterialID.cpp:27
SO3::SMaterialID::GetParentWorld
SPhysicWorld * GetParentWorld()
Definition
SO3MaterialID.cpp:47
SO3::SMaterialID::getID
int getID()
Definition
SO3MaterialID.cpp:37
SO3::SMaterialID::O3MaterialID
OgreNewt::MaterialID * O3MaterialID
Definition
SO3MaterialID.h:48
SO3::SMaterialID::getOgreNewtMaterialID
OgreNewt::MaterialID * getOgreNewtMaterialID()
Definition
SO3MaterialID.cpp:32
SO3::SMaterialID::GetParentScene
SScene * GetParentScene()
Definition
SO3MaterialID.cpp:42
SO3::SPhysicWorld
Definition
SO3Physics.h:100
SO3::SScene
Definition
SO3Scene.h:125
SO3
Definition
SO3DataScol.h:38
Generated by
1.9.8