當前位置: 首頁>>代碼示例>>C#>>正文


C# RenderForm.Show方法代碼示例

本文整理匯總了C#中SharpDX.Windows.RenderForm.Show方法的典型用法代碼示例。如果您正苦於以下問題:C# RenderForm.Show方法的具體用法?C# RenderForm.Show怎麽用?C# RenderForm.Show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SharpDX.Windows.RenderForm的用法示例。


在下文中一共展示了RenderForm.Show方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Main

        private static void Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("Args: filepath");
                return;
            }
            else
            {
                var file = args[0];
                var form = new RenderForm("Assimp Viewer");
                form.Show();
                using (var app = new AssimpViewWindow(file))
                {
                    app.Initialize(form);

                    using (var loop = new RenderLoop(form))
                    {
                        while (loop.NextFrame())
                        {
                            app.Update();
                            app.Render();
                        }
                    }
                }
            }
        }
開發者ID:oguna,項目名稱:AssimpSharp,代碼行數:27,代碼來源:Program.cs

示例2: CreateWindow

 private void CreateWindow()
 {
     _form = new RenderForm(ConfigurationManager.Config.Title)
     {
         ClientSize = new Size(ConfigurationManager.Config.ScreenSize.X, ConfigurationManager.Config.ScreenSize.Y),
         FormBorderStyle = FormBorderStyle.FixedSingle
     };
     _form.Show();
     _form.Name = "Alpha";
 }
開發者ID:ndech,項目名稱:Alpha,代碼行數:10,代碼來源:DirectXUi.cs

示例3: Main

        static void Main()
        {
            var form = new RenderForm("Render");
            using (var engine = new Engine(form))
            {
                form.Width = 800;
                form.Height = 600;
                form.Icon = null;
                form.Show();

                var TestCase = new Test(engine);

                engine.Run();
            }
        }
開發者ID:dtysky,項目名稱:TearsOfTimes-MinecraftRemake,代碼行數:15,代碼來源:Program.cs

示例4: Run

        public static void Run()
        {
            var form = new RenderForm("HelloWorld D3D12");
            form.Icon = null;
            using (var helloTriangle = new DX12Test())
            {
                form.Show();
                helloTriangle.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        helloTriangle.Update();
                        helloTriangle.Render();
                    }
                }
            }
        }
開發者ID:dtysky,項目名稱:TearsOfTimes-MinecraftRemake,代碼行數:19,代碼來源:DX12Test.cs

示例5: Main

        static void Main(string[] args)
        {
            var form = new RenderForm("CubeRender");

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

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        app.Update();
                        app.Render();
                    }
                }
            }
        }
開發者ID:dtysky,項目名稱:TearsOfTimes-MinecraftRemake,代碼行數:19,代碼來源:Program.cs

示例6: Main

        static void Main(string[] args)
        {
            var form = new RenderForm("HelloWorldD3D12");

            using (var helloTriangle = new HelloWorld())
            {
                form.Show();
                helloTriangle.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        helloTriangle.Update();
                        helloTriangle.Render();
                    }
                }
            }
        }
開發者ID:MaybeMars,項目名稱:SharpDX-Samples,代碼行數:19,代碼來源:Program.cs

示例7: Main

        static void Main()
        {
            var form = new RenderForm("Hello Bundles");
            form.Width = 1280;
            form.Height = 800;
            form.Show();

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

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        app.Update();
                        app.Render();
                    }
                }
            }
        }
開發者ID:RobyDX,項目名稱:SharpDX_D3D12HelloWorld,代碼行數:21,代碼來源:Program.cs

示例8: Main

        static void Main(string[] args)
        {
            var form = new RenderForm("ModelRender");

            using (var app = new ModelRender())
            {
                form.Width = 1440;
                form.Height = 900;
                form.Show();
                app.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        app.Update();
                        app.Render();
                    }
                }
            }
        }
開發者ID:dtysky,項目名稱:TearsOfTimes-MinecraftRemake,代碼行數:21,代碼來源:Program.cs

示例9: Main

        static void Main(string[] args)
        {
            var form = new RenderForm("HelloWorldD3D12");

            using (var helloTriangle = new HelloWorldShared.HelloWorld())
            {
                form.Show();
                form.ClientSizeChanged += (o, e) => helloTriangle.Resize(form.ClientSize.Width, form.ClientSize.Height);

                helloTriangle.Initialize(form);

                using (var loop = new RenderLoop(form))
                {
                    while (loop.NextFrame())
                    {
                        helloTriangle.Update();
                        helloTriangle.Render();
                    }
                }
            }
        }
開發者ID:bdachev,項目名稱:HelloWorldDX12,代碼行數:21,代碼來源:Program.cs

示例10: InitializeWindows

        private void InitializeWindows()
        {
            if (MainForm != null)
                return;

            ApplicationHandle = this;
            ApplicationName = "Engine";

            MainForm = new RenderForm(Configuration.Title)
            {
                ClientSize = new Size(Configuration.Width, Configuration.Height),
                FormBorderStyle = SystemConfiguration.BorderStyle
            };

            MainForm.Show();
        }
開發者ID:Earthmark,項目名稱:RenderTest,代碼行數:16,代碼來源:System.cs

示例11: CreateWindow

 private void CreateWindow()
 {
     Form = new RenderForm(ConfigurationManager.Config.Title)
     {
         ClientSize = new Size(ConfigurationManager.Config.Width, ConfigurationManager.Config.Height),
         FormBorderStyle = FormBorderStyle.FixedSingle
     };
     Form.Show();
 }
開發者ID:ndech,項目名稱:PlaneSimulator,代碼行數:9,代碼來源:Renderer.cs


注:本文中的SharpDX.Windows.RenderForm.Show方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。