Firebird News

Wednesday, May 04, 2011

opengl context in lazarus ubuntu debian

Lazarus includes a TOpenGLControl - a LCL control with an OpenGL context. The lazarus package LazOpenGLContext can be found in /usr/local/share/lazarus/components/opengl/lazopenglcontext.lpk. An example can be found in /usr/local/share/lazarus/components/opengl/examples/testopenglcontext1.lpr
From the menu install the context package
Package -> open package and browse to
lazopenglcontext.lpk
in /usr/local/share/lazarus/components/opengl/
press install and then lazarus will be restarted after finish and you will have a
copy the example project from
/usr/local/share/lazarus/components/opengl/example
into a local dir
mkdir lazarus_opengl
cd lazarus_opengl
cp -rp /usr/local/share/lazarus/components/opengl/example .
open the project
openglcontext1.lpr and press run from the menu

you will have a nice spinning cube :)
what is next continue with nehe tutorials , lazarus ones
There are full complete headers up to opengl 4.1
So the sky is the limit

No comments: