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

Comparing libgender/util.h (file contents):
Revision 1.1 by root, Sun Oct 3 02:38:33 2004 UTC vs.
Revision 1.2 by root, Sun Oct 3 03:17:09 2004 UTC

23 point () { }; 23 point () { };
24 point (GLfloat x, GLfloat y, GLfloat z) : x(x), y(y), z(z) { }; 24 point (GLfloat x, GLfloat y, GLfloat z) : x(x), y(y), z(z) { };
25}; 25};
26 26
27struct colour { 27struct colour {
28 GLfloat r, g, b; 28 GLfloat r, g, b, a;
29 colour (GLfloat r = 1., GLfloat g = 1., GLfloat b = 1.) : r(r), g(g), b(b) { }; 29 colour (GLfloat r = 1., GLfloat g = 1., GLfloat b = 1., GLfloat a = 1.) : r(r), g(g), b(b), a(a) { };
30}; 30};
31 31
32struct vec3 { 32struct vec3 {
33 GLfloat x, y, z; 33 GLfloat x, y, z;
34 vec3 () { }; 34 vec3 () { };
66 colour c; 66 colour c;
67 GLfloat intensity; 67 GLfloat intensity;
68 GLfloat radius; 68 GLfloat radius;
69}; 69};
70 70
71struct material {
72 colour diffuse, specular, emission;
73 GLfloat shininess;
74};
75
71struct draw_context { 76struct draw_context {
72 enum { DEPTH, LIGHTED } mode; 77 enum { DEPTH, LIGHTED } mode;
73 light *l; 78 light *l;
74}; 79};
75 80

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines