From 7c5a3514dd6e907866bddcbb09b4d9cbd958dd8e Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 29 Jul 2012 15:09:53 +0200 Subject: Video mode changing - added video mode querying & changing - added joystick querying & changing - cleaned up CApplication interface --- src/graphics/engine/engine.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/graphics/engine/engine.cpp') diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index 0914f9e..e544ee3 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -62,9 +62,6 @@ Gfx::CEngine::CEngine(CInstanceManager *iMan, CApplication *app) m_sound = NULL; m_terrain = NULL; - m_dim.x = 640; - m_dim.y = 480; - m_lastDim = m_dim; m_focus = 0.75f; m_baseTime = 0; m_lastTime = 0; @@ -272,6 +269,12 @@ bool Gfx::CEngine::AfterDeviceSetInit() return true; } +void Gfx::CEngine::ResetAfterDeviceChanged() +{ + // TODO +} + + Gfx::Texture Gfx::CEngine::CreateTexture(const std::string &texName, const Gfx::TextureCreateParams ¶ms) { CImage img; @@ -727,3 +730,14 @@ void Gfx::CEngine::AddStatisticTriangle(int count) { m_statisticTriangle += count; } + +void Gfx::CEngine::SetShowStat(bool show) +{ + m_showStats = show; +} + +bool Gfx::CEngine::GetShowStat() +{ + return m_showStats; +} + -- cgit v1.2.3-1-g7c22