From: jpbruyere Date: Wed, 15 Apr 2015 09:31:45 +0000 (+0200) Subject: screenshot X-Git-Tag: 0.2~104 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=b9ef3d364896edc96f189dc899d33b90d79c6d38;p=jp%2Fcrow.git screenshot --- diff --git a/Tests/GOLIBTest_2.cs b/Tests/GOLIBTest_2.cs new file mode 100644 index 00000000..f92cd16c --- /dev/null +++ b/Tests/GOLIBTest_2.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_1 : OpenTKGameWindow + { + public GOLIBTest_1 () + : base(1024, 600,"test") + {} + + Container g; + + protected override void OnLoad (EventArgs e) + { + base.OnLoad (e); + LoadInterface("Interfaces/test1.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_1 win = new GOLIBTest_1( )) { + win.Run (30.0); + } + } + } +} \ No newline at end of file diff --git a/Tests/Interfaces/test2.goml b/Tests/Interfaces/test2.goml new file mode 100755 index 00000000..43524e85 --- /dev/null +++ b/Tests/Interfaces/test2.goml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/magic3d.png b/magic3d.png new file mode 100755 index 00000000..b23fb496 Binary files /dev/null and b/magic3d.png differ