From 242622f0e68db1cfcc58d0b7543d2b9d435e7832 Mon Sep 17 00:00:00 2001 From: Alexander Biryukov Date: Thu, 22 Mar 2018 17:50:52 +0500 Subject: [PATCH] Texture scaling --- game/main_code.cpp | 6 +++++- windows/DoubleHitBalls-win/DoubleHitBalls-win/main.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/game/main_code.cpp b/game/main_code.cpp index e95f035..6381ae7 100644 --- a/game/main_code.cpp +++ b/game/main_code.cpp @@ -32,7 +32,7 @@ const std::string CONST_BALL_TEXTURE = "ball_mod1"; const std::string CONST_BALLGLOW_TEXTURE = "ball_glow"; -const std::string CONST_REFLECTOR_TEXTURE = "reflector"; +const std::string CONST_REFLECTOR_TEXTURE = "reflector_mod1"; const std::string CONST_WALL_LEFT_TEXTURE = "wall_left_mod1"; const std::string CONST_WALL_RIGHT_TEXTURE = "wall_right_mod1"; @@ -98,6 +98,10 @@ void TMyApplication::InnerInit() ResourceManager->TexList.AddTexture("console_bkg.bmp"); ResourceManager->FrameManager.AddFrameRenderBuffer("LevelBuffer", 512, 512); + + // Level frames Init + ResourceManager->FrameManager.AddFrameRenderBuffer("LeftLevelFrame", Renderer->GetScreenWidth()*0.1f,Renderer->GetScreenHeight()); + ResourceManager->FrameManager.AddFrameRenderBuffer("RightLevelFrame", Renderer->GetScreenWidth()*0.1f, Renderer->GetScreenHeight()); OnDrawSignal.connect(boost::bind(&TGameLoading::Draw, boost::ref(GameLoading))); Inited = true; diff --git a/windows/DoubleHitBalls-win/DoubleHitBalls-win/main.cpp b/windows/DoubleHitBalls-win/DoubleHitBalls-win/main.cpp index fb69352..8c4a983 100755 --- a/windows/DoubleHitBalls-win/DoubleHitBalls-win/main.cpp +++ b/windows/DoubleHitBalls-win/DoubleHitBalls-win/main.cpp @@ -8,7 +8,7 @@ int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst, LPSTR lpszCmdLine, int nCmdShow) { - int width = 700; + int width = 800; int height = 480;