本文整理汇总了C#中DX11RenderSettings.ApplyTransforms方法的典型用法代码示例。如果您正苦于以下问题:C# DX11RenderSettings.ApplyTransforms方法的具体用法?C# DX11RenderSettings.ApplyTransforms怎么用?C# DX11RenderSettings.ApplyTransforms使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DX11RenderSettings
的用法示例。
在下文中一共展示了DX11RenderSettings.ApplyTransforms方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenderSlice
private void RenderSlice(DX11RenderContext context,DX11RenderSettings settings, int i, bool viewportpop)
{
float cw = (float)this.ClientSize.Width;
float ch = (float)this.ClientSize.Height;
settings.ViewportIndex = i;
settings.ApplyTransforms(this.FInView[i], this.FInProjection[i], this.FInAspect[i], this.FInCrop[i]);
settings.BackBuffer = this.FOutBackBuffer[0][context];
settings.RenderWidth = this.FOutBackBuffer[0][context].Resource.Description.Width;
settings.RenderHeight = this.FOutBackBuffer[0][context].Resource.Description.Height;
settings.ResourceSemantics.Clear();
settings.CustomSemantics.Clear();
if (viewportpop)
{
context.RenderTargetStack.PushViewport(this.FInViewPort[i].Normalize(cw, ch));
}
//Call render on all layers
for (int j = 0; j < this.FInLayer.SliceCount; j++)
{
this.FInLayer[j][context].Render(this.FInLayer.PluginIO, context, settings);
}
if (viewportpop)
{
context.RenderTargetStack.PopViewport();
}
}