Esempio n. 1
0
void Draw(Core::Graphics& graphics){
	if (isEditingSpaceship){
		editor.Draw(graphics);
	}
	else{
		graphics.SetColor(defaultColor);

		if(!isMainMenu && !isControls){
			{
				PROFILE("LevelDraw");
				lvl.Draw(graphics);
			}
			{
				PROFILE("ParticlesDraw");
				manager->Draw(graphics);
			}
		}
		else if (isControls){
			Controls::Draw(graphics);
		}
		else{
			menu.Draw(graphics);
		}
	}

	Debug::DrawMemoryState(graphics, SCREEN_HEIGHT);
}