Components Notebook
Home

Notebooks
C#
C++
Agile Hacker
Hardware
Photos

Book Reviews

OpenGL in C#

March 12, 2005

As I was working through Computer Graphics Using Open GL Second Edition , I converted the code to C#. So far I have only done Chapter 2 & part of Chapter 3. This book is probably not very useful if you want to get going quickly on 3D game programming. I plan to read the OpenGL SuperBible, 3rd Edition , so I don't know if & when I will get back to the Hill book.

To use my code, first download Tao and place the extracted files in a subdirectory named Tao. Download my sample code and place it inside the Tao directory. Extracting Hill.zip into the Tao directory should give you a subdirectory named Hill. Make sure you also get Freeglut from the Tao website and copy freeglut.dll into your Windows\system32 directory.

Inside the Hill directory you will find 3 directories called c2, c3, & data. The c2 directory has the Chapter 2 code. Launch VS using the First.sln file in the First subdirectory. The c3 directory has the Chapter 3 code. Launch VS using c3.sln which is found in the c3 directory.

With the files organized as I have indicated above, the solutions should work as is using Visual Studio 2003. If you are using another development enviornment, delete everything in the Hill directory except the .cs files and the data in the data directory. Also delete the Assembly.cs files. Create new project files or compiler scripts for the code in each subdirectory. Each subdirectory contain a separate compilation unit, most of which should be compiled as executible files. The code in the c3\Utility directory should be compiled as a class library.

C# Notebook


wburris at telusplanet dot net