SO3Engine
OgreNewt_MaterialID.h
Go to the documentation of this file.
1/*
2 OgreNewt Library
3
4 Ogre implementation of Newton Game Dynamics SDK
5
6 OgreNewt basically has no license, you may use any or all of the library however you desire... I hope it can help you in any way.
7
8 by Walaber
9 some changes by melven
10
11*/
12#ifndef _INCLUDE_OGRENEWT_MATERIALID
13#define _INCLUDE_OGRENEWT_MATERIALID
14
15
17
18// OgreNewt namespace. all functions and classes use this namespace.
19namespace OgreNewt
20{
21
22
24class _OgreNewtExport MaterialID
25{
26public:
27
29
32 MaterialID( const World* world );
33
36
38 int getID() const { return id; }
39
40protected:
41
42 friend class OgreNewt::World;
43
47 MaterialID( const World* world, int ID );
48
49private:
50 int id;
51 const OgreNewt::World* m_world;
52
53};
54
55
56
57} // end NAMESPACE OgreNewt
58
59#endif
60// _INCLUDE_OGRENEWT_MATERIALID
61
represents a material
int getID() const
get Newton-assigned material ID.
represents a physics world.