Page 5/36
Installing GLScene
There are two ways how to obtain GLScene source code. Which one will you choose
depends on your intentions with this library. If you just want to try it out download the snapshot
version. Snapshot is an archive file containing all source code files. Snapshot is available from
www.glscene.org. It is packed with 7zip format (www.7-zip.org). Just unpack it wherever you want
your GLScene to reside.
Another way how to download GLScene is using CVS. CVS is an Internet protocol system
used by SourceForge for on line accessing source code repositories by developers. Choose this
method if you want to have the latest version of GLScene and check frequently for changes and
updates. You will need CVS client in order to download. There are many CVS clients but I
recommend www.tortoisecvs.org.
All CVS clients have one thing in common. It is called CVS root. It is a string, in fact an
address that is used to access web. CVS root for GLScene is:
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/glscene
If you have TortoiseCVS installed right click in directory where you want GLScene to be
downloaded and select CVS Checkout. Enter the above CVS root. You will also have to specify
which directory to download. This is called module. You need these modules: DelphiX (where X is
your Delphi version), Source and Demos. Yoy have to download directories one by one.
Once you have all GLScene files on your hard drive you can compile the packages in Delphi.
Choose corresponding directory to your Delphi version. There are seven packages in GLScene.
1. GLCgx.dpk Cg shaders.
2. GLS_DWSx.dpk [TODO]
3. GLScenex.dpk core package containing GLScene itself.
4. GLS_ODEx.dpk ODE is physics plug-in for GLScene.
5. GLS_SDLx.dpk [TODO]
6. GLSS_BASSx.dpk -
7. GLSS_FMODx.dpk BASS and FMOD are sound plug-ins.
You may have to manually add GLScene directories in Delphi search path. After successful
compilation there will be four new component tabs. By default they will be placed in the rightmost
position next to other component tabs. You will have to scroll to the right in order to see them or
rearrange the tabs. Now you are ready to use GLScene!
GLScene beginner's guide, Jan Zizka, 2005