示例#1
0
文件: World.cpp 项目: CmPons/angel2d
void World::Render()
{
	// Setup the camera matrix.
	theCamera.Render();

	DrawRenderables();

	// Give the GameManager a chance to draw something.
	if (_gameManager)
		_gameManager->Render();

	//Render debug information
	theSpatialGraph.Render();

	theUI.Render();

	DrawDebugItems();

	#if !ANGEL_MOBILE
		//Draw developer console
		_console->Render();
	#endif

	HandleGLErrors();
}
示例#2
0
void World::TickAndRender()
{
	Simulate(_simulateOn);

	// Setup the camera matrix.
	theCamera.Render();

	DrawRenderables();

	// Give the GameManager a chance to draw something.
	if (_gameManager)
		_gameManager->Render();

	//Render debug information
	theSpatialGraph.Render();

	DrawDebugItems();

	//Draw developer console
	_console->Render();
}