Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-08

Patch to add GLX 1.4 support

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michalis Kamburelis

Hi,

For people working with new OpenGL features: I just submitted a patch to upgrade our GLX unit to GLX 1.4, add some new GLX extensions, and add comfortable functions to check existence of a particular GLX extension/version. This allows you to easily use modern GLX "FB config" functions to initialize OpenGL context, and to use glXCreateContextAttribsARB to request forward-compatible OpenGL context (without deprecated stuff). The patch is on

http://bugs.freepascal.org/view.php?id=19953

The patch contains also modifications to glxtest example, to show new context creation approach. There's a good description of modern OpenGL context creation in the opengl.org wiki, see
http://www.opengl.org/wiki/Creating_an_OpenGL_Context and http://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_%28GLX%29

Michalis