Last change
on this file since 2817 was
2811,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged the ObjectImporter to trunk: merged with
svn merge branches/importer/src/ trunk/src/ -r 2794:HEAD
|
File size:
944 bytes
|
Rev | Line | |
---|
[2776] | 1 | #ifndef _MATERIAL_H |
---|
| 2 | #define _MATERIAL_H |
---|
[2810] | 3 | |
---|
| 4 | extern int verbose; |
---|
| 5 | |
---|
[2776] | 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); |
---|
[2778] | 16 | Material* addMaterial(char* mtlName); |
---|
| 17 | |
---|
[2776] | 18 | void init(void); |
---|
| 19 | ~Material (); |
---|
[2778] | 20 | |
---|
| 21 | |
---|
[2776] | 22 | void setName (char* mtlName); |
---|
[2778] | 23 | char* getName (void); |
---|
[2776] | 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 | |
---|
[2778] | 35 | Material* search (char* mtlName); |
---|
[2776] | 36 | |
---|
| 37 | bool select (void); |
---|
| 38 | |
---|
[2778] | 39 | Material* nextMat; |
---|
| 40 | |
---|
[2776] | 41 | private: |
---|
[2778] | 42 | char name [50]; |
---|
[2776] | 43 | int illumModel; |
---|
[2780] | 44 | float diffuse [4]; |
---|
| 45 | float ambient [4]; |
---|
| 46 | float specular [4]; |
---|
[2776] | 47 | float transparency; |
---|
| 48 | |
---|
| 49 | }; |
---|
| 50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.