… | … | ||
---|---|---|---|
176 | }; | 176 | }; |
177 | 177 | ||
178 | struct material { | 178 | struct material { |
179 | colour diffuse, specular, emission; | 179 | colour diffuse, specular, emission; |
180 | GLfloat shininess; | 180 | GLfloat shininess; |
181 | |||
182 | material () | ||
183 | { | ||
184 | diffuse = colour (1, 0, 1, 1); | ||
185 | specular = colour (1, 0, 1, 1); | ||
186 | emission = colour (1, 0, 1, 1); | ||
187 | shininess = 1; | ||
188 | } | ||
181 | }; | 189 | }; |
182 | 190 | ||
183 | struct entity_base; | 191 | struct entity_base; |
184 | struct view; | 192 | struct view; |
185 | 193 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |