hi,
anyone know how to print the value of a GLenum var?
Qt Code:
cout << "enum " << getEnum(); //it prints a number..To copy to clipboard, switch view to plain text mode
hi,
anyone know how to print the value of a GLenum var?
Qt Code:
cout << "enum " << getEnum(); //it prints a number..To copy to clipboard, switch view to plain text mode
Regards
You'll have to write your own function to convert it from an integer to a string, e.g.
Qt Code:
switch( value ) { case enum1: return "enum1"; ... }To copy to clipboard, switch view to plain text mode
enums are compiled into integers.
Bookmarks