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

Comparing libgender/entity.C (file contents):
Revision 1.8 by root, Sun Oct 3 03:51:51 2004 UTC vs.
Revision 1.9 by root, Sun Oct 3 04:00:51 2004 UTC

151 if (ctx.mode == draw_context::LIGHTED) 151 if (ctx.mode == draw_context::LIGHTED)
152 { 152 {
153 glMaterialfv (GL_FRONT, GL_DIFFUSE, (GLfloat *)&m.diffuse); 153 glMaterialfv (GL_FRONT, GL_DIFFUSE, (GLfloat *)&m.diffuse);
154 glMaterialfv (GL_FRONT, GL_SPECULAR, (GLfloat *)&m.specular); 154 glMaterialfv (GL_FRONT, GL_SPECULAR, (GLfloat *)&m.specular);
155 glMaterialfv (GL_FRONT, GL_EMISSION, (GLfloat *)&m.emission); 155 glMaterialfv (GL_FRONT, GL_EMISSION, (GLfloat *)&m.emission);
156 glMaterialf (GL_FRONT, GL_SHININESS, m.shininess); 156 glMaterialf (GL_FRONT, GL_SHININESS, m.shininess);
157 } 157 }
158 158
159 for (iterator i = begin (); i < end (); ++i) 159 for (iterator i = begin (); i < end (); ++i)
160 { 160 {
161 if (ctx.mode == draw_context::LIGHTED) 161 if (ctx.mode == draw_context::LIGHTED)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines