#include <imports.h>
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.
Data Fields | |
GLfloat | f |
GLint | i |
GLfloat fi_type::f |
GLint fi_type::i |