Kochol Game Engine
0.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Material.h
Go to the documentation of this file.
1
// File name: Material.h
2
// Des: This class is Material uses Physic Material
3
// Date: 19/12/1388
4
// Programmer: Hadi Robati (hadirobati)
5
6
#ifndef KGE_MATERIAL_H
7
#define KGE_MATERIAL_H
8
9
namespace
kge
10
{
11
namespace
ph
12
{
13
class
Material
14
{
15
public
:
16
18
Material
() {
/* Nothing To Do */
}
19
21
Material
(
float
Restitution ,
float
staticFriction ,
float
dynamicFriction ,
float
dynamicFrictionV,
22
float
staticFrictionV ,
kge::math::Vector
*dir );
23
24
virtual
~Material
() {
/* Nothing To Do */
}
25
26
virtual
void
setRestitution
(
float
Restitution ) = 0;
27
28
virtual
float
getRestitution
(
void
) = 0;
29
30
virtual
void
setStaticFriction
(
float
staticFriction ) = 0;
31
32
virtual
float
getStaticFriction
(
void
) = 0;
33
34
virtual
void
setDynamicFriction
(
float
dynamicFriction ) = 0;
35
36
virtual
float
getDynamicFriction
(
void
) = 0;
37
38
virtual
void
setDynamicFrictionV
(
float
dynamicFrictionV ) = 0;
39
40
virtual
float
getDynamicFrictionV
(
void
) = 0;
41
42
virtual
void
setDirOfAnisotropy
(
kge::math::Vector
*dir ) = 0;
43
44
virtual
void
setStaticFrictionV
(
float
staticFrictionV ) = 0;
45
46
virtual
float
getStaticFrictionV
(
void
) = 0;
47
48
virtual
char
isValid
(
void
) = 0;
49
50
virtual
void
setToDefault
(
void
) = 0;
51
52
virtual
unsigned
short
getMaterialIndex
(
void
) = 0;
53
};
54
}
// ph
55
}
// kge
56
57
#endif // KGE_MATERIAL_H
E:
mycodes
git
kge
Include
ph
Material.h
Generated on Mon Jan 6 2014 16:02:53 for Kochol Game Engine by
1.8.1.2