ZenGL Tutorial

From Free Pascal wiki
Revision as of 01:57, 29 May 2011 by Lainz (talk | contribs) (→‎Compilation: external link)
Jump to navigationJump to search

Download

You can get ZenGL for Linux, Windows & Mac. Download ZenGL.

Installation

Just extract the downloaded file with a compressed files manager, like 7-Zip in the folder you want.

Compilation

Application can be compiled with ZenGL statically or with using so/dll/dylib.

Read more about compilation in the ZenGL Wiki.

ZenGL statically

Advantage of static compilation is smaller size of application, but it requires including all units.

Also static compilation requires to follow the terms of LGPL-license, particularly you must open source code of application that use source code of ZenGL.

<delphi>{$DEFINE STATIC}</delphi>

ZenGL using so/dll/dylib

Using so/dll/dylib doesn't requires to follow terms of LGPL-license. For this comment the $DEFINE STATIC. Also you need to compile ZenGL library.

<delphi>//{$DEFINE STATIC}</delphi>

Windows dll

Open "src\Lazarus\ZenGL.lpi" then go to "Run > Compile (Ctrl + F9)".

Then in the directory "src\" you can see the file "ZenGL.dll", copy and paste in the folder "bin\i386" where all demo binaries are compiled.

Now you can compile demos commenting the $DEFINE STATIC.