protected override void OnPaint(PaintEventArgs pe) { //base.OnPaint(pe); // do self render m_gameTimer.Tick(); NGameEngine gameEngine = Program.g_GameEngine; if (gameEngine != null) { gameEngine.FrameTick(m_gameTimer.DeltaTime, m_viewport); } }
protected virtual void RenderLevel() { if (m_focusLevel.Length <= 0) { return; } m_mainTimer.Tick(); m_cameraCtrl.UpdateCamera(m_view.Camera); NEditorEngine eng = NexusEditor.Program.engine; //-- draw level eng.UpdateLevel(m_focusLevel, m_mainTimer.DeltaTime, m_view); if (m_focusLevel == eng.MainLevelName) { eng.RenderMainLevel(m_focusLevel, m_view); } else { eng.RenderLevel(m_focusLevel, m_view, true); } }