Initialize() публичный Метод

Initialise pipeline and assets
public Initialize ( SharpDX.Windows.RenderForm form ) : void
form SharpDX.Windows.RenderForm The form
Результат void
Пример #1
0
        static void Main()
        {
            var form = new RenderForm("Hello Window");
            form.Width = 1280;
            form.Height = 800;
            form.Show();

            using (HelloWindow app = new HelloWindow())
            {
                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 Window");

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

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

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