PDA

View Full Version : GLenum



mickey
6th July 2006, 23:08
hi,
anyone know how to print the value of a GLenum var?


cout << "enum " << getEnum(); //it prints a number..

e8johan
7th July 2006, 11:51
You'll have to write your own function to convert it from an integer to a string, e.g.



switch( value )
{
case enum1:
return "enum1";
...
}


enums are compiled into integers.