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

Comparing libgender/util.h (file contents):
Revision 1.32 by root, Sat Oct 9 16:36:31 2004 UTC vs.
Revision 1.33 by root, Sat Oct 9 21:25:18 2004 UTC

121struct matrix { 121struct matrix {
122 GLfloat data[4][4]; 122 GLfloat data[4][4];
123 123
124 const GLfloat operator ()(int i, int j) const { return data[j][i]; }; 124 const GLfloat operator ()(int i, int j) const { return data[j][i]; };
125 GLfloat &operator ()(int i, int j) { return data[j][i]; }; 125 GLfloat &operator ()(int i, int j) { return data[j][i]; };
126
127 operator GLfloat *() { return &data[0][0]; }
126 128
127 void diagonal (GLfloat v); 129 void diagonal (GLfloat v);
128 void clear () { diagonal (0.F); }; 130 void clear () { diagonal (0.F); };
129 void identity () { diagonal (1.F); }; 131 void identity () { diagonal (1.F); };
130 132

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines