ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/material.C
(Generate patch)

Comparing libgender/material.C (file contents):
Revision 1.1 by root, Sun Oct 10 14:15:15 2004 UTC vs.
Revision 1.2 by root, Sun Oct 10 14:18:58 2004 UTC

3 3
4material::~material () 4material::~material ()
5{ 5{
6} 6}
7 7
8void simple_material::push () 8void simple_material::begin ()
9{ 9{
10 glMaterialfv (GL_FRONT, GL_DIFFUSE, (GLfloat *)&diffuse); 10 glMaterialfv (GL_FRONT, GL_DIFFUSE, (GLfloat *)&diffuse);
11 glMaterialfv (GL_FRONT, GL_SPECULAR, (GLfloat *)&specular); 11 glMaterialfv (GL_FRONT, GL_SPECULAR, (GLfloat *)&specular);
12 glMaterialfv (GL_FRONT, GL_EMISSION, (GLfloat *)&emission); 12 glMaterialfv (GL_FRONT, GL_EMISSION, (GLfloat *)&emission);
13 glMaterialf (GL_FRONT, GL_SHININESS, shininess); 13 glMaterialf (GL_FRONT, GL_SHININESS, shininess);
14} 14}
15 15
16void simple_material::pop () 16void simple_material::end ()
17{ 17{
18} 18}
19 19
20 20

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines