OpenGL

From Lazarus wiki
Revision as of 10:54, 26 July 2006 by Swen (talk | contribs)
Jump to navigationJump to search

Deutsch (de) English (en) français (fr) 日本語 (ja) português (pt) русский (ru) Tiếng Việt (vi) 中文(中国大陆)‎ (zh_CN)

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.

Asmoday

General purpose OpenGL 3D graphics engine for Freepascal

Tutorials

There are a lot of tutorials at nehe.

OpenGL Tutorial