mesa: refactor: move various ENUM_TO_x macros into macros.h

This commit is contained in:
Brian Paul
2008-06-11 20:13:07 -06:00
committed by Keith Whitwell
parent ae1fdc1523
commit ddd630ef90
7 changed files with 7 additions and 20 deletions

View File

@@ -1129,10 +1129,6 @@ def EmitHeader():
#define INT_TO_BOOLEAN(I) ( (I) ? GL_TRUE : GL_FALSE )
#define ENUM_TO_BOOLEAN(E) ( (E) ? GL_TRUE : GL_FALSE )
#define ENUM_TO_INT(E) ( (GLint) (E) )
#define ENUM_TO_FLOAT(E) ( (GLfloat) (E) )
#define BOOLEAN_TO_INT(B) ( (GLint) (B) )
#define BOOLEAN_TO_FLOAT(B) ( (B) ? 1.0F : 0.0F )