Last change
on this file since 2776 was
2776,
checked in by bensch, 20 years ago
|
orxonox/branches/importer: added minimum material importer. does nothing for the time being
|
File size:
877 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 | void init(void); |
---|
14 | ~Material (); |
---|
15 | |
---|
16 | void setName (char* mtlName); |
---|
17 | void setIllum (int illum); |
---|
18 | void setIllum (char* illum); |
---|
19 | void setDiffuse (float r, float g, float b); |
---|
20 | void setDiffuse (char* rgb); |
---|
21 | void setAmbient (float r, float g, float b); |
---|
22 | void setAmbient (char* rgb); |
---|
23 | void setSpecular (float r, float g, float b); |
---|
24 | void setSpecular (char* rgb); |
---|
25 | void setTransparency (float trans); |
---|
26 | void setTransparency (char* trans); |
---|
27 | |
---|
28 | |
---|
29 | bool select (void); |
---|
30 | |
---|
31 | private: |
---|
32 | char* name; |
---|
33 | int illumModel; |
---|
34 | float diffuse [3]; |
---|
35 | float ambient [3]; |
---|
36 | float specular [3]; |
---|
37 | float transparency; |
---|
38 | |
---|
39 | Material* nextMat; |
---|
40 | static Material* firstMat; |
---|
41 | static Material* currentMat; |
---|
42 | }; |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.