public Engine(string[] args)
{
Application.Init ();
// Create a new GL widget
glw = new GLWidget();
glw.GLSetup += GtkGL.GLWidget.EnableLighting;
// Create a new Teapot object
GtkGL.OldTeapot teapot = new OldTeapot();
// Create a controller that manages rotation of the Teapot object
controller = new GLObjectRotationController(teapot);
// Add our Teapot object to the GLWidget's list of associated GLObjects
glw.AddGLObject( teapot );
// Read in the glade file that describes the widget layout
Glade.XML gxml = new Glade.XML (null, "glwidget.glade", "glwidget", null);
// Connect the Signals defined in Glade
gxml.Autoconnect ( glw );
// Pack the gl window into the vbox
Gtk.VBox vbox1 = (Gtk.VBox)gxml["vbox1"];
vbox1.PackStart ( glw );
// Show the GL widget
Gtk.Window window = (Gtk.Window)gxml["glwidget"];
window.Show();
// Show the GL widget
glw.Show();
// Go dog, go!
Application.Run ();
}