本文整理汇总了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();
}