Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            //   GTKBindingHelper.InitXThreads();
            // GTK
            GTKBindingHelper.InitializeGlBindings();
            Application.Init();
            MainWindow win = MainWindow.Create();

            win.Show();
            Application.Run();
        }
Exemplo n.º 2
0
        public override void LoadAll()
        {
            // Modern unices can use EGL to create
            // both GL and ES contexts, so we need
            // to load all entry points. This is
            // especially true on KMS, Wayland and Mir.

            Stopwatch time = Stopwatch.StartNew();

            GTKBindingHelper.InitializeGlBindings();

            Debug.Print("Bindings loaded in {0} ms.", time.Elapsed.TotalMilliseconds);
        }