diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-08-21 16:14:59 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-08-21 16:14:59 +0200 |
| commit | fcfe9c2189fbbb00b0901b246e401b0f05413c7f (patch) | |
| tree | 215b17c72cfa5d25148f1fe05a67747df246a1c6 /Tests/GOLIBTest_stack.cs | |
| parent | 7f3b87047828b7d8a250ec3e696361538fa7a3f4 (diff) | |
Test stack example
Diffstat (limited to 'Tests/GOLIBTest_stack.cs')
| -rw-r--r-- | Tests/GOLIBTest_stack.cs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Tests/GOLIBTest_stack.cs b/Tests/GOLIBTest_stack.cs new file mode 100644 index 00000000..2164c721 --- /dev/null +++ b/Tests/GOLIBTest_stack.cs @@ -0,0 +1,55 @@ +#define MONO_CAIRO_DEBUG_DISPOSE
+
+
+using System;
+using System.Runtime.InteropServices;
+using OpenTK;
+using OpenTK.Graphics.OpenGL;
+using OpenTK.Input;
+
+using System.Diagnostics;
+
+//using GGL;
+using go;
+using System.Threading;
+
+
+namespace test
+{
+ class GOLIBTest_stack : OpenTKGameWindow
+ {
+ public GOLIBTest_stack ()
+ : base(1024, 600,"test")
+ {}
+
+ VerticalStack g;
+
+ protected override void OnLoad (EventArgs e)
+ {
+ base.OnLoad (e);
+ LoadInterface("Interfaces/test_stack.goml", out g);
+
+ }
+ protected override void OnRenderFrame (FrameEventArgs e)
+ {
+ GL.Clear (ClearBufferMask.ColorBufferBit);
+ base.OnRenderFrame (e);
+ SwapBuffers ();
+ }
+
+ protected override void OnUpdateFrame (FrameEventArgs e)
+ {
+ base.OnUpdateFrame (e);
+ }
+
+ [STAThread]
+ static void Main ()
+ {
+ Console.WriteLine ("starting example");
+
+ using (GOLIBTest_stack win = new GOLIBTest_stack( )) {
+ win.Run (30.0);
+ }
+ }
+ }
+}
\ No newline at end of file |