blob: 18490d6d459e30e33bf843fcd0196d0b8270fc89 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
|
#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")
{}
protected override void OnLoad (EventArgs e)
{
base.OnLoad (e);
LoadInterface("Interfaces/test_stack.goml");
}
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);
}
}
}
}
|