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

Comparing libgender/entity.C (file contents):
Revision 1.14 by root, Sun Oct 3 05:53:09 2004 UTC vs.
Revision 1.15 by root, Sun Oct 3 05:55:24 2004 UTC

149 if (!list) 149 if (!list)
150 { 150 {
151 list = glGenLists (1); 151 list = glGenLists (1);
152 glNewList (list, GL_COMPILE); 152 glNewList (list, GL_COMPILE);
153 153
154 glBegin (type);
155
156 glMaterialfv (GL_FRONT, GL_DIFFUSE, (GLfloat *)&m.diffuse); 154 glMaterialfv (GL_FRONT, GL_DIFFUSE, (GLfloat *)&m.diffuse);
157 glMaterialfv (GL_FRONT, GL_SPECULAR, (GLfloat *)&m.specular); 155 glMaterialfv (GL_FRONT, GL_SPECULAR, (GLfloat *)&m.specular);
158 glMaterialfv (GL_FRONT, GL_EMISSION, (GLfloat *)&m.emission); 156 glMaterialfv (GL_FRONT, GL_EMISSION, (GLfloat *)&m.emission);
159 glMaterialf (GL_FRONT, GL_SHININESS, m.shininess); 157 glMaterialf (GL_FRONT, GL_SHININESS, m.shininess);
158
159 glBegin (type);
160 160
161 for (iterator i = begin (); i < end (); ++i) 161 for (iterator i = begin (); i < end (); ++i)
162 { 162 {
163 glTexCoord2fv ((GLfloat *)&i->t); 163 glTexCoord2fv ((GLfloat *)&i->t);
164 glNormal3fv ((GLfloat *)&i->n); 164 glNormal3fv ((GLfloat *)&i->n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines