• Advertisement

Archived

This topic is now archived and is closed to further replies.

OpenGL users.......please read............

This topic is 6071 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a book, OpenGL SuperBible. It shows how to create a window, but first you have to create a win32 CONSOLE app. I also have an online guide or tutorial that says dont create a win32 console app, but rather just a plain win32 app (not a console app). The code looks very different, why is that and what is the difference between a console app and regular win32 app. thanks.

Share this post


Link to post
Share on other sites
Advertisement
A console app is one that runs in a DOS-style window. You create one using the ''console app'' choice in Visual Studio, which is straighforward enough. The main function for such a program is called int main(), and you don''t need a message pump or anything like that for it.

Share this post


Link to post
Share on other sites
The OpenGL Superbible begins teaching you OpenGL using GLUT (GL Utility Toolkit). GLUT is a good way to start learning, because you don''t have to deal with the hassle of learning to program for windows. You just start in a console window, and GLUT handles all of the windowing for you.

Later in the book, you will learn how to open a window using the Win32 API. You will then learn how to get a rendering context to that window. You will then learn how to choose a pixel format. Then you will learn how to use the message loop to control your program.

You don''t want to have to do all of that while you are learning OpenGL, so you use GLUT in the early parts of the book. The tutorial you were reading was showing you how to open a window with the win32 api. Just do what the book says for now.

Share this post


Link to post
Share on other sites

  • Advertisement