|

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
|