map draw improvements

This commit is contained in:
Henrique
2011-08-12 01:34:21 -03:00
parent 7cf188a67d
commit 0a268fc7d9
6 changed files with 60 additions and 21 deletions

View File

@@ -93,10 +93,6 @@ void Engine::run()
rootContainer->render();
// render fps
if(m_calculateFps)
defaultFont->renderText(fpsText, Point(g_graphics.getScreenSize().width() - fpsTextSize.width() - 10, 10));
// todo remove. render map
g_game.getMap()->draw(0, 0);
@@ -108,6 +104,10 @@ void Engine::run()
}
//item->draw(1, 1, 7);
// render fps
if(m_calculateFps)
defaultFont->renderText(fpsText, Point(g_graphics.getScreenSize().width() - fpsTextSize.width() - 10, 10));
g_graphics.endRender();
// swap buffers