Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/importer/material.h @ 2836

Last change on this file since 2836 was 2836, checked in by bensch, 20 years ago

orxonox/trunk/importer: ability to read in specular shininess

File size: 1.0 KB
Line 
1#ifndef _MATERIAL_H
2#define _MATERIAL_H
3
4extern int verbose;
5
6#include <GL/gl.h>
7#include <GL/glu.h>
8#include <stdlib.h>
9#include <fstream>
10
11class 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 setShininess (float shini);
33  void setShininess (char* shini);
34  void setTransparency (float trans);
35  void setTransparency (char* trans);
36
37  Material* search (char* mtlName);
38
39  bool select (void);
40
41  Material* nextMat;
42
43 private:
44  char name [50];
45  int illumModel;
46  float diffuse [4];
47  float ambient [4];
48  float specular [4];
49  float shininess;
50  float transparency;
51
52};
53#endif
Note: See TracBrowser for help on using the repository browser.