#include <glheader.h>
Data Fields | |
| GLfloat | f |
| GLint | i |
On x86 systems, moving a float as a int (thereby using integer registers instead of FP registers) is a performance win. Typically, this can be done with ordinary casts. But with gcc's -fstrict-aliasing flag (which defaults to on in gcc 3.0) these casts generate warnings. The following union typedef is used to solve that.
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001