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
|
Rev | Line | |
---|
[2776] | 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); |
---|
[2778] | 13 | Material* addMaterial(char* mtlName); |
---|
| 14 | |
---|
[2776] | 15 | void init(void); |
---|
| 16 | ~Material (); |
---|
[2778] | 17 | |
---|
| 18 | |
---|
[2776] | 19 | void setName (char* mtlName); |
---|
[2778] | 20 | char* getName (void); |
---|
[2776] | 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 | |
---|
[2778] | 32 | Material* search (char* mtlName); |
---|
[2776] | 33 | |
---|
| 34 | bool select (void); |
---|
| 35 | |
---|
[2778] | 36 | Material* nextMat; |
---|
| 37 | |
---|
[2776] | 38 | private: |
---|
[2778] | 39 | char name [50]; |
---|
[2776] | 40 | int illumModel; |
---|
[2780] | 41 | float diffuse [4]; |
---|
| 42 | float ambient [4]; |
---|
| 43 | float specular [4]; |
---|
[2776] | 44 | float transparency; |
---|
| 45 | |
---|
| 46 | }; |
---|
| 47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.