PDA

View Full Version : glGetString();



Dire_Avenger
02-09-2001, 05:48 AM
This is probably a little off-topic, but how do I display the strings returned by glGetString() in a console window?
I've tried:
printf("OpenGL Vendor: %s", glGetString(GL_VENDOR));
But I just get "(null)".
HELP!
TiA

AndersO
02-09-2001, 09:02 AM
Initialize/set up OpenGL before you call glGetString.

Hope that helps

Dire_Avenger
02-12-2001, 05:56 AM
ie. Don't call glGetString at the beginning of the main proc., call at the end of the init proc. instead...I'll try it: thanks!