How can I get rid off the console window whenever I compile and run an openGL application? It’s annoying. For some reason it runs both windows (the opengl window and the console).
I’ve read it somewhere but now I can’t find it (who figures??).
Also, if you know, how can i run the program in full screen with out the window bar on top?
You have created a console application that creates a Window, that’s why you have both, create a Window application instead of a console application and you want have any console window.
FreeConsole() is another way.
There are options in the project settings for turning off the console window. See http://reality.sgi.com/mjk/glut3/glut-faq.html
Q/A #36 has the answer to your problem.