Last change
on this file since 2808 was
2795,
checked in by bensch, 20 years ago
|
orxonox/branches/importer: importer includes into the source
|
File size:
922 bytes
|
Line | |
---|
1 | #ifndef _MATERIAL_H |
---|
2 | #define _MATERIAL_H |
---|
3 | #include <GL/gl.h> |
---|
4 | #include <GL/glu.h> |
---|
5 | #include <stdlib.h> |
---|
6 | #include <fstream.h> |
---|
7 | |
---|
8 | class Material |
---|
9 | { |
---|
10 | public: |
---|
11 | Material (); |
---|
12 | Material (char* mtlName); |
---|
13 | Material* addMaterial(char* mtlName); |
---|
14 | |
---|
15 | void init(void); |
---|
16 | ~Material (); |
---|
17 | |
---|
18 | |
---|
19 | void setName (char* mtlName); |
---|
20 | char* getName (void); |
---|
21 | void setIllum (int illum); |
---|
22 | void setIllum (char* illum); |
---|
23 | void setDiffuse (float r, float g, float b); |
---|
24 | void setDiffuse (char* rgb); |
---|
25 | void setAmbient (float r, float g, float b); |
---|
26 | void setAmbient (char* rgb); |
---|
27 | void setSpecular (float r, float g, float b); |
---|
28 | void setSpecular (char* rgb); |
---|
29 | void setTransparency (float trans); |
---|
30 | void setTransparency (char* trans); |
---|
31 | |
---|
32 | Material* search (char* mtlName); |
---|
33 | |
---|
34 | bool select (void); |
---|
35 | |
---|
36 | Material* nextMat; |
---|
37 | |
---|
38 | private: |
---|
39 | char name [50]; |
---|
40 | int illumModel; |
---|
41 | float diffuse [4]; |
---|
42 | float ambient [4]; |
---|
43 | float specular [4]; |
---|
44 | float transparency; |
---|
45 | |
---|
46 | }; |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.