Example #1
0
 public DemoDisplay(DemoCanvas _cv) : base(_cv)
 {
     Title = "libcaca .NET Bindings test suite";
     DisplayTime = 20000; // Refresh every 20 ms
     cv = _cv;
 }
Example #2
0
    public static void Main()
    {
        Console.WriteLine("libcaca {0} .NET test", Libcaca.getVersion());
        Console.WriteLine("(c) 2006 Jean-Yves Lamoureux <*****@*****.**>");

        /* Instanciate a caca canvas */
        DemoCanvas cv = new DemoCanvas();

        /* We have a proper canvas, let's display it using Caca */
        DemoDisplay dp = new DemoDisplay(cv);

        /* Random number. This is a static method,
           not to be used with previous instance */
        Console.WriteLine("A random number: {0}", Libcaca.Rand(0, 1337));

        dp.EventLoop();
    }