本文整理汇总了C#中RenderManager.getRenderTarget方法的典型用法代码示例。如果您正苦于以下问题:C# RenderManager.getRenderTarget方法的具体用法?C# RenderManager.getRenderTarget怎么用?C# RenderManager.getRenderTarget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RenderManager
的用法示例。
在下文中一共展示了RenderManager.getRenderTarget方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Camera
public Camera(IDataReader state, RenderManager renderManager)
: base(state)
{
addInterface(typeof(ICamera));
m_renderManager = renderManager;
m_renderTargetId = new XnaScrapId(state);
IRenderTarget renderTarget = m_renderManager.getRenderTarget(m_renderTargetId);
if (renderTarget != null)
{
renderTarget.Cameras.Add(this);
}
m_fovy = state.ReadSingle();
m_near = state.ReadSingle();
m_far = state.ReadSingle();
m_aspect = state.ReadSingle();
float f = m_fovy * (float)Math.PI / 180.0f;
m_projection = Matrix.CreatePerspectiveFieldOfView(f, m_aspect, m_near, m_far);
m_viewport = new _Viewport(state);
m_renderManager.Cameras.Add(new XnaScrapId("ImplementCameraNamingYouJerk!"), this);
}