Пример #1
0
        static void Main()
        {
            var form = new RenderForm("Hello Triangle");
            form.Width = 1280;
            form.Height = 800;
            form.Show();

            using (HelloTriangle app = new HelloTriangle())
            {
                app.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        app.Update();
                        app.Render();
                    }
                }
            }
        }
Пример #2
0
        static void Main()
        {
            var form = new RenderForm("Hello Triangle");

            form.Width  = 1280;
            form.Height = 800;
            form.Show();

            using (HelloTriangle app = new HelloTriangle())
            {
                app.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        app.Update();
                        app.Render();
                    }
                }
            }
        }