本文整理汇总了C#中IRenderer.Update方法的典型用法代码示例。如果您正苦于以下问题:C# IRenderer.Update方法的具体用法?C# IRenderer.Update怎么用?C# IRenderer.Update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IRenderer
的用法示例。
在下文中一共展示了IRenderer.Update方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public static void Init(GlobalState state)
{
if (state != null) {
_state = state;
BaseRenderer.UpdateState((BaseRenderer)BackgroundRenderer, state);
BaseRenderer.UpdateState((BaseRenderer)MagicRenderer, state);
}
if (IsInitialized) return;
_deviceManager1 = new CommonDX.DeviceManager();
_deviceManager2 = new CommonDX.DeviceManager();
_renderer1 = new DxRenderer.BackgroundComposer() { State = _state };
_renderer2 = new DxRenderer.MagicComposer() { State = _state };
BackgroundSIS = new SumoNinjaMonkey.Framework.Controls.DrawingSurfaceSIS(
(gt) => { _renderer1.Update(gt); },
(tb) => { _renderer1.Render(tb); },
(dm) => { _renderer1.Initialize(dm); },
(e1, e2) => { _renderer1.InitializeUI(e1, e2); },
(uri) => { _renderer1.LoadLocalAsset(uri); },
() => { _renderer1.Unload(); },
_deviceManager1);
//_renderer1, _deviceManager1);
MagicSIS = new SumoNinjaMonkey.Framework.Controls.DrawingSurfaceSIS(
(gt) => { _renderer2.Update(gt); },
(tb) => { _renderer2.Render(tb); },
(dm) => { _renderer2.Initialize(dm); },
(e1, e2) => { _renderer2.InitializeUI(e1, e2); },
(uri) => { _renderer2.LoadLocalAsset(uri); },
() => { _renderer2.Unload(); },
_deviceManager2);
//_renderer2, _deviceManager2);
IsInitialized = true;
}