From 05dd30a5158184fea83d93f53e8100aecaebb74a Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Tue, 22 Nov 2016 21:25:34 -0500 Subject: Scaling textures (start) --- src/ui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index e9738cf..922e5be 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -1337,10 +1337,12 @@ void InputSystem::update(entityx::EntityManager &en, entityx::EventManager &ev, break; case SDLK_F12: // Make the BYTE array, factor of 3 because it's RBG. - static GLubyte* pixels; + /*static GLubyte* pixels; pixels = new GLubyte[ 3 * SCREEN_WIDTH * SCREEN_HEIGHT]; glReadPixels(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, GL_RGB, GL_UNSIGNED_BYTE, pixels); - takeScreenshot(pixels); + takeScreenshot(pixels);*/ + + ev.emit(game::SCREEN_WIDTH, game::SCREEN_HEIGHT); std::cout << "Took screenshot" << std::endl; break; -- cgit v1.2.3