Can we open a console window by opengl?

I would want to use printf or cout to print data in order to debug.

Can we open a console window for debug by opengl?

No, OpenGL doesnt know anything about a command console.

You could create your own command console using OpenGL for the drawing stuff but its a lot of work and not what you want anyway.

Check what kind of support your operating system offers.

hi,

opengl is special because it doesn’t interfere with all those console commands and control. it is portable. it were to interfere with all the console commands then it would be dependant on a particular OS. Hence the ARB made it excluded from such things , so that it can be used visual basic,VC++, delphi, etc