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