diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-01 19:19:06 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-01 19:19:06 -0400 |
commit | 3ffcf5e332dc4cb6cf2e966db5d0d3a369eee711 (patch) | |
tree | bed5bc1a4dccb2ed3e162d40aaff1c5918f3c5a3 /src | |
parent | ae024b5ad89b789a8fb68cb51308680f3270e6b6 (diff) |
Scaled up entities and stopped player from flashing
Diffstat (limited to 'src')
-rw-r--r-- | src/render.cpp | 1 | ||||
-rw-r--r-- | src/render.hpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/render.cpp b/src/render.cpp index 9355513..8e9cbdf 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -63,6 +63,7 @@ void RenderSystem::update([[maybe_unused]] entityx::EntityManager& entities, ); glm::mat4 model = glm::mat4(1.0f); + model = glm::scale(model, glm::vec3(2.0f)); glUseProgram(s); diff --git a/src/render.hpp b/src/render.hpp index 6362d63..5d3025c 100644 --- a/src/render.hpp +++ b/src/render.hpp @@ -38,8 +38,8 @@ class RenderSystem : public entityx::System<RenderSystem> { private: constexpr static const char *title = "gamedev2"; - constexpr static int width = 640; - constexpr static int height = 480; + constexpr static int width = 1280; + constexpr static int height = 720; std::unique_ptr<SDL_Window, void (*)(SDL_Window *)> window; SDL_GLContext context; |