Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First of all you have to understand the difference between the windowing library and the opengl context. In short, here is an overall summary.</p> <p>OpenGL can be split in 2 parts:</p> <ul> <li>The client</li> <li>The driver</li> </ul> <p>The client library is just a bunch of headers that you have to install. The driver is shipped with your graphic card.</p> <p>The only thing that you can do is to manipulate an OpenGL context, that is, a set of buffers (frame buffers: color, depth, stencil, accumulation...) and states.</p> <p>The context itself has no notion of "window" or "key". All it does is take some inputs, let it go through its pipeline, and save the output in frame buffers.</p> <p>Next, there is the windowing system ( native ones: Win32, Cocoa, ..., or libraries built on top of it: Qt, GLFW, SDL, SFML, ... ) that provides windows, user input, drawings, etc... It is the windowing library that knows how to read OpenGL buffers and display them on screen.</p> <p>So basically, all you have to do is to choose a windowing library, set up an OpenGL context, feed it with some inputs, and ask the window library to display the content on a canvas-like widget.</p> <p>Give some more informations on what you're trying to do if you want more information.</p> <p>Sides notes:</p> <ul> <li><a href="http://www.songho.ca/opengl/gl_pipeline.html" rel="nofollow noreferrer">http://www.songho.ca/opengl/gl_pipeline.html</a> for a description of the OpenGL rendering pipeline</li> <li><a href="http://www.opengl.org/sdk/docs/man/" rel="nofollow noreferrer">http://www.opengl.org/sdk/docs/man/</a> for the OpenGL 2 reference manual</li> <li>Look at these simple windowing libraries: <ul> <li><a href="http://www.libsdl.org/" rel="nofollow noreferrer">http://www.libsdl.org/</a> : SDL</li> <li><a href="http://www.sfml-dev.org/index.php" rel="nofollow noreferrer">http://www.sfml-dev.org/index.php</a> : SFML</li> <li><a href="http://glfw.sourceforge.net/" rel="nofollow noreferrer">http://glfw.sourceforge.net/</a> : GLFW</li> <li><a href="http://www.opengl.org/resources/libraries/glut/" rel="nofollow noreferrer">http://www.opengl.org/resources/libraries/glut/</a> : GLUT</li> </ul></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload