File: Lesson01.cs

package info (click to toggle)
gtkglarea-sharp 0.0.17-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,148 kB
  • ctags: 492
  • sloc: sh: 3,376; cs: 2,633; makefile: 421; xml: 126
file content (36 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// created on 12/13/2005 at 1:51 PM
using System;
using Gtk;
using GtkSharp;

using GtkGL;

using Tao.OpenGl;

using gl=Tao.OpenGl.Gl;
using glu=Tao.OpenGl.Glu;

// This code is based on work from Alp Toker and the NeHe lesson here:
// http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01
namespace NeHe
{
	public class Lesson01
	{
		public static int Main (string[] args)
		{
			Gtk.Application.Init ();

			GtkGL.GladeExample gladeWindow = new GtkGL.GladeExample ();
			
			// Show GL Window			
			// Is this a bug?  Shouldn't ShowAll do what these two commands do?
			// gladeWindow.glwidget.ShowAll();
			gladeWindow.glwidget.Show();
			gladeWindow.glw.Show();
			
			Gtk.Application.Run ();
			
			return 0;
		}
	}
}