ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libgender/material.h
Revision: 1.1
Committed: Sun Oct 10 14:15:15 2004 UTC (22 years ago) by root
Content type: text/plain
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #ifndef MATERIAL_H
2     #define MATERIAL_H
3    
4     #include "util.h"
5    
6     struct material
7     {
8     virtual void push () = 0;
9     virtual void pop() = 0;
10     virtual ~material ();
11     };
12    
13     struct simple_material : material
14     {
15     colour diffuse, specular, emission;
16     GLfloat shininess;
17    
18     void push ();
19     void pop ();
20    
21     simple_material ()
22     : diffuse(1, 0, 1, 1)
23     , specular(1, 0, 1, 1)
24     , emission(1, 0, 1, 1)
25     , shininess(1.)
26     {
27     }
28     };
29    
30     #endif
31    
32