Welcome to the new Friends-of-FPC!

Here you can find all kinds of information about the FreePascal Compiler. We have many tutorials and howtos as well as a selection of tools to help you with your programming. We also have some example codes for you. And if you want to contribute some information/ sources/ tools yourself you can do so.
Also we have finally relaunched the FoFPC forum. It's your chance for some Q&A about everything FreePascal.

Friends-of-FPC

Tutorials: Learn how to code with FreePascal.

Source Codes: A collection of examples, miscellaneous source codes and open source stuff.

Tools and Help Files: Intro- duction of some tools that might help you with FPC.

Community

Forum: Ask or answer questions about the FreePascal Compiler, programming or just babble about coding.

Contribute! Contribute your own Tutorial, Source Codes or Tools and send them to us!

Website

About: Information about Friends-of-FPC.org.

OpenGL/ FPC - Chapter 1 - by Delax

This tutorial is about OpenGL with FPC (Free Pascal Compiler). If you are searching for OpenGL with C or some other language, try the Neon Helium website. Further, I won't use GLUT. I'll use the Wiggle (WGL) initializations instead. If somebody wants to add a Linux based initialization, he's more than welcome!

OpenGL is one of the two "APIs of choice" for 3D coding. I won't go into the API wars again and just say "OpenGL has it's advantages and disadvantages. So does Direct3D". I just want to give you an introduction to OpenGL. And hopefully in a way that beginners will understand it, too.

And while we are at it: I will focus on beginners. If you have experience with OpenGL in another language, you may want to look at the init code and then start porting your old stuff right away.

I'm assuming that you have some experience with the Windows API. Well, you should know what a Windows Class is and how to create a Window. If you don't, take a look at the Win32/ FPC tutorial on Friends-of-FPC.org. Aw hell, if you don't know a thing about Windows and don't want to read anything else, there is still cut and paste ;)

I'll also assume that you have the Free Pascal Compiler and the OpenGL package installed. If not, please refer to the FPC Site and get them. The new version of this tutorial is for the headers that came with the 1.0.10 package. So be sure to have them.

The example programs are tested on Windows 98 SE, Windows NT 4 SP 6, Windows 2000 and XP. If you encounter some problem with them, please mail me. Well, that's it. Let's go!

Delax/ Sundancer Inc.
[delax@sundancerinc.de]

Back to previous page

Useful Links









Link to us