Removing console window for Glut/FreeGlut/GLFW?

后端 未结 8 670
醉话见心
醉话见心 2021-02-03 13:42

Under Visual C++, I have played around with Glut/FreeGlut/GLFW. It seems that everyone of these projects adds a CMD window by default. I tried removing it going under:

8条回答
  •  无人及你
    2021-02-03 13:59

    If you create a new project as a console application, it will always run as such. You have to create a new GUI project if you want to run it in an actual window, otherwise the correct headers and libraries will not be included.

    Also the WinMain function that's required will be included for you in the resulting template files.

提交回复
热议问题