fpc/packages/opengl
nickysn 506f1ff3e4 + add support for the GLX_SGI_swap_control extension
* import all GLX procedures and functions via the glXGetProcAddress and
  glXGetProcAddressARB functions, if they are available. This is necessary,
  because not all GLX extension functions are exported statically by libGL.so

git-svn-id: trunk@20516 -
2012-03-14 00:09:57 +00:00
..
examples * rebuilt Makefiles 2011-12-04 15:34:01 +00:00
src + add support for the GLX_SGI_swap_control extension 2012-03-14 00:09:57 +00:00
fpmake.pp * Fix file warnings for win32 2012-02-23 23:21:19 +00:00
glunits.txt * opengl 2008-01-26 20:55:34 +00:00
Makefile * Changed more packages to fpmake building 2012-01-15 18:26:19 +00:00
Makefile.fpc * Changed more packages to fpmake building 2012-01-15 18:26:19 +00:00
Makefile.fpc.fpcmake * Changed more packages to fpmake building 2012-01-15 18:26:19 +00:00
readme * opengl 2008-01-26 20:55:34 +00:00

New Free Pascal OpenGL (GL, GLU, GLUT, GLX) Units
GLX unit (c) 1999-2002 Sebastian Guenther, sg@freepascal.org
other units adapted to Free Pascal from the delphi3d.net units
by Tom Nuydens (tom@delphi3d.net), see http://www.delphi3d.net/

You might have a look at the original readme, glunits.txt, as well 


Some remarks:
* The new OpenGL units are not 100% compatible to the old ones; the new units
  use exactly the same function declarations as their C counterpart.
* Platform compatiblity: You can work on all targets exactly as on Win32;
  for example, you can use wglGetProcAddress for loading OpenGL extensions even
  on Unix based systems. A future release of the glext unit might have helper
  functions for loading specific extensions. (There is a small problem with
  Free Pascal: In FPC mode, you cannot assign a pointer, as returned by
  wglGetProcAddress, to a variable which holds a function pointer. Currently
  you have to compile your programs in Delphi mode, if they are using OpenGL
  extensions)
* GLUT on Win32: Get the glut32.dll from here:
  http://www.xmission.com/~nate/glut.html
* GTKGLArea: The GL Area widget for GTK is available in the GTK package