OpenGL

From Lazarus wiki
Revision as of 19:37, 14 January 2006 by Mattias2 (talk | contribs)
Jump to navigationJump to search

OpenGL is the platform independent standard library for 3D graphics. The same OpenGL commands works exactly the same under all platforms. The only platform dependent part is the creation of the OpenGL context. But this is already done by the following packages, so you just have to learn OpenGL.

OpenGL control

Lazarus comes with a simple and easy to use OpenGL control, that provides an OpenGL context under the following platforms:

  • Linux: GTK + GLX, ToDo: gtk2
  • FreeBSD: GTK + GLX, ToDo: gtk2
  • Windows: Win32 + WGL
  • MacOSX: Carbon + AGL

Just install the package components/opengl/lazopenglcontext.lpk and have a look at the example.

GLScene

There is a big Delphi package, that has been ported to Lazarus. Along with tools and editors integrated in the IDE. See GLScene.

Tutorials

There are a lot of tutorials at nehe.