| Revision: | 1.2 |
| Committed: | Sun Oct 10 14:18:58 2004 UTC (21 years, 11 months ago) by root |
| Content type: | text/plain |
| Branch: | MAIN |
| Changes since 1.1: | +4 -4 lines |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | #ifndef MATERIAL_H |
| 2 | #define MATERIAL_H | ||
| 3 | |||
| 4 | #include "util.h" | ||
| 5 | |||
| 6 | struct material | ||
| 7 | { | ||
| 8 | root | 1.2 | virtual void begin () = 0; |
| 9 | virtual void end () = 0; | ||
| 10 | root | 1.1 | virtual ~material (); |
| 11 | }; | ||
| 12 | |||
| 13 | struct simple_material : material | ||
| 14 | { | ||
| 15 | colour diffuse, specular, emission; | ||
| 16 | GLfloat shininess; | ||
| 17 | |||
| 18 | root | 1.2 | void begin (); |
| 19 | void end (); | ||
| 20 | root | 1.1 | |
| 21 | simple_material () | ||
| 22 | : diffuse(1, 0, 1, 1) | ||
| 23 | , specular(1, 0, 1, 1) | ||
| 24 | , emission(1, 0, 1, 1) | ||
| 25 | , shininess(1.) | ||
| 26 | { | ||
| 27 | } | ||
| 28 | }; | ||
| 29 | |||
| 30 | #endif | ||
| 31 | |||
| 32 |