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) );