void Cocos2dRenderManager::update(float delayTime) { if (!mIsInitialise) return; onFrameEvent(delayTime); }
void DummyRenderManager::drawOneFrame() { Gui* gui = Gui::getInstancePtr(); if (gui == nullptr) return; static Timer timer; static unsigned long last_time = timer.getMilliseconds(); unsigned long now_time = timer.getMilliseconds(); unsigned long time = now_time - last_time; onFrameEvent((float)((double)(time) / (double)1000)); last_time = now_time; begin(); onRenderToTarget(this, false); end(); }
void MGUI_RenderSystem::drawOneFrame() { MyGUI::Gui* gui = MyGUI::Gui::getInstancePtr(); if (gui == nullptr) return; RS_RenderEvent(RenderUI); static MGUI_Timer timer; static unsigned long last_time = timer.getMilliseconds(); unsigned long now_time = timer.getMilliseconds(); unsigned long time = now_time - last_time; onFrameEvent((float)((double)(time) / (double)1000)); last_time = now_time; begin(); onRenderToTarget(this, mUpdate); end(); mUpdate = false; }
void renderQueueStarted(Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& skipThisInvocation) { Gui* gui = Gui::getInstancePtr(); if (gui == nullptr) return; if (Ogre::RENDER_QUEUE_OVERLAY != queueGroupId) return; Ogre::Viewport* viewport = mSceneManager->getCurrentViewport(); if (nullptr == viewport || !viewport->getOverlaysEnabled()) return; if (mWindow->getNumViewports() <= mActiveViewport || viewport != mWindow->getViewport(mActiveViewport)) return; mCountBatch = 0; static Timer timer; static unsigned long last_time = timer.getMilliseconds(); unsigned long now_time = timer.getMilliseconds(); unsigned long time = now_time - last_time; onFrameEvent((float)((double)(time) / (double)1000)); last_time = now_time; //begin(); setManualRender(true); onRenderToTarget(this, mUpdate); //end(); // сбрасываем флаг mUpdate = false; }