blob: fdf75a8df256655ad747aac0289ab33df8992eed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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/HelloWorld/ui/helloworld.crow");
}
}
}
|