]> O.S.I.I.S - jp/crow.git/commitdiff
screenshot
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 15 Apr 2015 09:31:45 +0000 (11:31 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 15 Apr 2015 09:31:45 +0000 (11:31 +0200)
Tests/GOLIBTest_2.cs [new file with mode: 0644]
Tests/Interfaces/test2.goml [new file with mode: 0755]
magic3d.png [new file with mode: 0755]

diff --git a/Tests/GOLIBTest_2.cs b/Tests/GOLIBTest_2.cs
new file mode 100644 (file)
index 0000000..f92cd16
--- /dev/null
@@ -0,0 +1,55 @@
+#define MONO_CAIRO_DEBUG_DISPOSE\r
+\r
+\r
+using System;\r
+using System.Runtime.InteropServices;\r
+using OpenTK;\r
+using OpenTK.Graphics.OpenGL;\r
+using OpenTK.Input;\r
+\r
+using System.Diagnostics;\r
+\r
+//using GGL;\r
+using go;\r
+using System.Threading;\r
+\r
+\r
+namespace test\r
+{\r
+       class GOLIBTest_1 : OpenTKGameWindow\r
+       {\r
+               public GOLIBTest_1 ()\r
+                       : base(1024, 600,"test")\r
+               {}\r
+\r
+               Container g;\r
+\r
+               protected override void OnLoad (EventArgs e)\r
+               {\r
+                       base.OnLoad (e);\r
+                       LoadInterface("Interfaces/test1.goml", out g);\r
+\r
+               }\r
+               protected override void OnRenderFrame (FrameEventArgs e)\r
+               {\r
+                       GL.Clear (ClearBufferMask.ColorBufferBit);\r
+                       base.OnRenderFrame (e);\r
+                       SwapBuffers ();\r
+               }\r
+\r
+               protected override void OnUpdateFrame (FrameEventArgs e)\r
+               {\r
+                       base.OnUpdateFrame (e);\r
+               }\r
+\r
+               [STAThread]\r
+               static void Main ()\r
+               {\r
+                       Console.WriteLine ("starting example");\r
+\r
+                       using (GOLIBTest_1 win = new GOLIBTest_1( )) {\r
+                               win.Run (30.0);\r
+                       }\r
+               }\r
+       }\r
+}
\ No newline at end of file
diff --git a/Tests/Interfaces/test2.goml b/Tests/Interfaces/test2.goml
new file mode 100755 (executable)
index 0000000..43524e8
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>\r
+<Container\r
+       HorizontalAlignment="Left" VerticalAlignment="Center"\r
+       Margin="10" Focusable="True" Fit="True" Background="Green">\r
+       <Group   Background="White" >\r
+               <Image Name="PhaseOverlay" Width="40" Height="40"\r
+                               Path="image/u.svg" Background="Red"/>\r
+       </Group>\r
+</Container>
\ No newline at end of file
diff --git a/magic3d.png b/magic3d.png
new file mode 100755 (executable)
index 0000000..b23fb49
Binary files /dev/null and b/magic3d.png differ