aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/AnimTest/main.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-07-17 20:26:28 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-07-17 20:26:28 +0200
commit9d786ab096ed36ea384e03ee5cea498790e31eec (patch)
treeadee54b5b90a35238d5794e9ffd3ebcf65798a06 /Samples/AnimTest/main.cs
parent57daad000aa31c7bcfa1f76b90d40da5a21da041 (diff)
wip
Diffstat (limited to 'Samples/AnimTest/main.cs')
-rw-r--r--Samples/AnimTest/main.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Samples/AnimTest/main.cs b/Samples/AnimTest/main.cs
new file mode 100644
index 00000000..6dd0b525
--- /dev/null
+++ b/Samples/AnimTest/main.cs
@@ -0,0 +1,28 @@
+using System;
+using Crow;
+using Glfw;
+using Samples;
+
+namespace HelloWorld
+{
+ class Program : Interface {
+ Program() : base (800, 600, true) {}
+ static void Main (string[] args) {
+ //Interface.PreferedBackendType = Drawing2D.BackendType.Egl;
+ using (Program app = new Program ()) {
+ //app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Label Text='Hello World' Background='Red' Top='50' Margin='0'/>");
+ //app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Window Caption='hello world'/>");
+ app.Run ();
+ }
+ }
+ protected override void OnInitialized()
+ {
+ Load ("/mnt/devel/crow/Samples/AnimTest/ui/anim.crow");
+ }
+
+ public override void UpdateFrame()
+ {
+ base.UpdateFrame();
+ }
+ }
+}