From d29f25bc86c00f5b1f7107bc608b9ef43f6a12bd Mon Sep 17 00:00:00 2001 From: Alec Obradovich Date: Tue, 28 Aug 2018 06:59:49 -0500 Subject: [PATCH] woomy --- src/client/main.cpp | 4 ++++ src/client/shaders/test.hpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/main.cpp b/src/client/main.cpp index eade287..cd220a4 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -12,6 +12,10 @@ void setColor(float r, float g, float b, SDL_Window* window) { SDL_GL_SwapWindow(window); } +void setupOrthoMode() { + +} + int main(int argc, char* argv[]) { using namespace sosc; diff --git a/src/client/shaders/test.hpp b/src/client/shaders/test.hpp index e7101a6..0fe08a3 100644 --- a/src/client/shaders/test.hpp +++ b/src/client/shaders/test.hpp @@ -1,6 +1,7 @@ #ifndef SOSC_SHADER_TEST_H #define SOSC_SHADER_TEST_H +#include #include #include #include "common.hpp" @@ -20,7 +21,7 @@ public: int width, height; SDL_GetWindowSize(window, &width, &height); - auto orthoMatrix = glm::ortho(0, width, height, 0); + glm::mat4 orthoMatrix = glm::ortho(0, width, height, 0); glUniformMatrix4fv( (*this)[ORTHO_MATRIX], 1, GL_FALSE, glm::value_ptr(orthoMatrix) );