Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/material.h @ 2823

Last change on this file since 2823 was 2822, checked in by patrick, 20 years ago

orxonox/trunk/src: changed list to template again, will add an iterator soon. fixed a graphics bug, that was realy painful to track.

File size: 942 bytes
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 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.