… | |
… | |
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) |