本文整理汇总了C#中UIRoot.Initialize方法的典型用法代码示例。如果您正苦于以下问题:C# UIRoot.Initialize方法的具体用法?C# UIRoot.Initialize怎么用?C# UIRoot.Initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIRoot
的用法示例。
在下文中一共展示了UIRoot.Initialize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Form_Load
private void Form_Load(object sender, EventArgs e)
{
{
var camera = new Camera(
new vec3(0, 0, 5), new vec3(), new vec3(0, 1, 0),
CameraType.Perspecitive, this.glCanvas1.Width, this.glCanvas1.Height);
var rotator = new SatelliteManipulater();
rotator.Bind(camera, this.glCanvas1);
this.camera = camera;
this.rotator = rotator;
}
{
var simplexNoiseRenderer = new SimplexNoiseRenderer();
simplexNoiseRenderer.Name = string.Format("Pickable: [{0}]", "Sphere");
simplexNoiseRenderer.Initialize();
this.simplexNoiseRenderer = simplexNoiseRenderer;
}
{
var UIRoot = new UIRoot();
UIRoot.Initialize();
this.uiRoot = UIRoot;
var glAxis = new UIAxis(AnchorStyles.Right | AnchorStyles.Bottom,
new Padding(3, 3, 3, 3), new Size(70, 70), -100, 100);
glAxis.Initialize();
this.glAxis = glAxis;
UIRoot.Children.Add(glAxis);
}
{
var frmPropertyGrid = new FormProperyGrid();
frmPropertyGrid.DisplayObject(this.simplexNoiseRenderer);
frmPropertyGrid.Show();
}
}
示例2: Form_Load
private void Form_Load(object sender, EventArgs e)
{
{
var camera = new Camera(
new vec3(0, 0, 1), new vec3(0, 0, 0), new vec3(0, 1, 0),
CameraType.Perspecitive, this.glCanvas1.Width, this.glCanvas1.Height);
var rotator = new SatelliteManipulater();
rotator.Bind(camera, this.glCanvas1);
this.camera = camera;
this.rotator = rotator;
}
{
var renderer = new AnalyzedPointSpriteRenderer(10000);
renderer.Initialize();
this.renderer = renderer;
}
{
var UIRoot = new UIRoot();
UIRoot.Initialize();
this.uiRoot = UIRoot;
var glAxis = new UIAxis(AnchorStyles.Right | AnchorStyles.Bottom,
new Padding(3, 3, 3, 3), new Size(70, 70), -100, 100);
glAxis.Initialize();
this.glAxis = glAxis;
UIRoot.Children.Add(glAxis);
}
{
var frmPropertyGrid = new FormProperyGrid();
frmPropertyGrid.DisplayObject(this.renderer);
frmPropertyGrid.Show();
this.formPropertyGrid = frmPropertyGrid;
}
}