OpenGL 3D samples
These samples use the Tao Framework for OpenGL on .NET and Mono.
Tao is constantly changing (and moving), so these samples may be out of date.
Redbook.Cube example in boo
NeHe Example
This is a port of the base code sample from the NeHe OpenGL tutorials site. It uses the Tao Framework's SimpleOpenGlControl.
Labels

1 Comment
Hide/Show CommentsSep 06, 2005
Alexander Rødseth
— How to get started with OpenGL and Boo in Debian —
First of all, install the "monodevelop-boo" and "subversion" packages.
Then, fire off the following commands:
svn co svn://mono.myrealbox.com/source/trunk/tao tao
(Download Tao into a directory named tao).
cd tao
(Enter the Tao-directory).
make mono-1.1 || sensible-pager BUILDING.txt
(Make the config or read documentation if it didn't work).
make
(Build Tao. There will be lots of error-messages, which is fine).
cd .. && mkdir myboo && cd myboo
(Create a nice directory for playing around with).
cp ../tao/dist/bin/* .
(Copy all the Tao-libraries here. This is all we need).
Save the cube.boo program (on this page: http://boo.codehaus.org/Opengl+3D+Samples) as cube.boo in your myboo-directory:
Okay. Now you've got the dll-files you need to use OpenGl with Boo and a sample application.
Compile the appplication like this:
booc cube.boo -r:Tao.FreeGlut.dll -r:Tao.OpenGl.dll -r:Tao.OpenGl.Glu.dll
The -r options are for making the dll-files available for your program.
Now, you can run your very first OpenGl program in Boo with Mono:
mono cube.exe
Or even just:
./cube.exe
If you get a black window with some white lines then you're all set. Congratulations!
You can even resize the window, just to see that the white lines are resized too.
Now, get hold of some OpenGL-tutorials, and it's all downhill from here.
If you should get errors that look like the following, on some other OpenGL-application:
nehe.boo(14,8): BCE0021: Namespace 'System.Windows.Forms' not found, maybe you forgot to add an assembly reference?
nehe.boo(15,8): BCE0021: Namespace 'System.Drawing' not found, maybe you forgot to add an assembly reference?
You can try to add -r:System.Windows.Forms or -r:System.Drawing, but at the time of writing, these parts are still unfinished in Mono.
Here's the status of System.Windows.Forms: http://www.go-mono.com/winforms.html
I can't wait to see your first complete game or application that uses OpenGL and Boo. Good luck!