Difference between revisions of "OpenGL"
From Free Pascal wiki
Jump to navigationJump to search (The names of the diferent units are in bold) |
|||
Line 1: | Line 1: | ||
− | OpenGL | + | 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 [http://nehe.gamedev.net/ nehe]. |
Revision as of 19:37, 14 January 2006
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.