Ejemplo n.º 1
0
        static void Main()
        {
            var form = new RenderForm("Hello Texture")
            {
                Width = 1280,
                Height = 800
            };
            form.Show();
            
            using (var app = new HelloTexture())
            {
                app.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        app.Update();
                        app.Render();
                    }
                }
            }
        }
        static void Main()
        {
            var form = new RenderForm("Hello Texture")
            {
                Width  = 1280,
                Height = 800
            };

            form.Show();

            using (var app = new HelloTexture())
            {
                app.Initialize(form);

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