本文整理匯總了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();
}
}
}
}
}
示例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";
}
示例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();
}
}
示例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();
}
}
}
}
示例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();
}
}
}
}
示例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();
}
}
}
}
示例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();
}
}
}
}
示例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();
}
}
}
}
示例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();
}
}
}
}
示例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();
}
示例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();
}