dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
754 stars 300 forks source link

Support OpenGL 3.0+ Render Contexts #8

Closed dwmkerr closed 10 years ago

dwmkerr commented 10 years ago

OpenGL 3.0 onwards uses a more complicated mechanism to create a render context. This involves first creating a standard render context, then using an extension to create a new 3.0 upwards render context. We should be supporting this properly - if we don't, then we cannot expect the advanced functionality of OpenGL 3.0 upwards to work properly.

See:

http://www.opengl.org/wiki/Creating_an_OpenGL_Context_(WGL)#Proper_Context_Creation

http://www.swiftless.com/tutorials/opengl4/1-opengl-window.html

dwmkerr commented 10 years ago

All done, see: https://github.com/dwmkerr/sharpgl/wiki/Specifying-OpenGL-Version