BBGamelib.CCDirector.drawScene C# (CSharp) Method

drawScene() public method

public drawScene ( ) : void
return void
		public void drawScene()
		{
			
			if (_displayError && _lastError != null) {
				return;
			}
			try{
				/* calculate "global" dt */
				calculateDeltaTime ();
				
				/* tick before glClear: issue #533 */
				if( ! _isPaused )
					_scheduler.update(_dt);

				/* to avoid flickr, nextScene MUST be here: after tick and before draw.
				 XXX: Which bug is this one. It seems that it can't be reproduced with v0.9 */
				if( _nextScene != null)
					setNextScene();

				
	//			DateTime t3 = DateTime.Now;
				_globolRendererSortingOrder = _startGlbolRendererSortingOrder;
				if(_runningScene!=null)
					_runningScene.visit();
			}catch(Exception e){
				CCDebug.Error(e.ToString());
				if(_displayError){
					_lastError = e;
				}else{
					Application.Quit();
				}
			}
			showState ();

//			_totalFrames++;
		}
		void calculateDeltaTime()