hello.
I wish create an opengl context with viewport ecc...in opengl 3 but without using glut.
there are some examples on opengl.org or in this forum or articles ?
I can't find nothing.
thanks
opengl 3
Started by giugio, Sep 20 2012 09:41 AM
5 replies to this topic
Sponsor:
#2 Moderators - Reputation: 4928
Posted 20 September 2012 - 09:51 AM
Do you want to avoind GLUT specifically, or do you want to avoid any third-party window manager? There are plenty of other window managers if you want to avoid GLUT; see the list of frameworks in the Getting Starter box in the OpenGL forum. If you want to avoid any third-party window manager then you have to use the API provided by the operating system. On Windows, that would be the Windows API for example. Check the first tutorials on nehe.gamedev.net for tutorials for many different platforms and frameworks.
#4 Members - Reputation: 4028
Posted 21 September 2012 - 06:38 AM
I'm not sure how you missed it, but the first NeHe tutorial is called "Setting up an OpenGL Window" and is right here: http://nehe.gamedev.net/tutorial/creating_an_opengl_window_%28win32%29/13001/
There is no difference between this code and the code required for GL3, and the code in this tutorial most definitely does use the Windows API.
There is no difference between this code and the code required for GL3, and the code in this tutorial most definitely does use the Windows API.
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.
#5 Moderators - Reputation: 4928
Posted 21 September 2012 - 06:40 AM
The very first tutorial is called "Setting Up An OpenGL Window" and has everything to do with setting up a window. The Getting Started box I also mentioned has information on how to set up a 3.0 or later version of the rendering context.






