本文整理汇总了C#中UpdateState.PreFrameDraw方法的典型用法代码示例。如果您正苦于以下问题:C# UpdateState.PreFrameDraw方法的具体用法?C# UpdateState.PreFrameDraw怎么用?C# UpdateState.PreFrameDraw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UpdateState
的用法示例。
在下文中一共展示了UpdateState.PreFrameDraw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BufferSpawnData
//internal update method
UpdateFrequency IUpdate.Update(UpdateState state)
{
if (disposed)
return UpdateFrequency.Terminate;
if (systemData == null)
return UpdateFrequency.FullUpdate60hz;
//draw proc only makes it's callback if system isn't null
drawProc.system = null;
if (enabled)
{
//system logic is performed as a thread task
threadWaitCallback.WaitForCompletion();
if (!pauseUpdatesWhileCulled ||
this.drawProc.AnyChildDrawnLastFrame)
{
//particle system is enabled, and isn't offscreen
BufferSpawnData();
//start the task
threadWaitCallback = state.Application.ThreadPool.QueueTask(threadAction, null);
//draw proc only makes it's callback if system isn't null
drawProc.system = this;
}
}
//asks the application to call Draw() on the drawProc when the frame begins
//as currnetly in update()
state.PreFrameDraw(drawProc);
return systemLogic.UpdateFrequency;
}