Getting Started

Once odl has been installed successfully and you have all the required dependencies, you can start developing with odl. To verify that it has indeed been set up properly, try running the code below.

using System;
using odl;

namespace TestNamespace
{
    class Program
    {
        public static void Main(params string[] Args)
        {
            Graphics.Start();
            
            Window w = new Window("Hello world!");
            w.Initialize();
            w.Show();
            
            while (Graphics.CanUpdate())
            {
                Graphics.Update();
            }
            
            Graphics.Stop();
        }
    }
}

If odl and its dependencies were setup properly, this should create a blank 640x480 window.

Last updated