aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simplegame/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simplegame/main.cpp')
-rw-r--r--examples/simplegame/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/simplegame/main.cpp b/examples/simplegame/main.cpp
index 06200661..9fba20eb 100644
--- a/examples/simplegame/main.cpp
+++ b/examples/simplegame/main.cpp
@@ -22,8 +22,9 @@ int main()
window.create("Simple Game", 800, 640);
SpriteBatch sp;
- textureProgram.compileShadersFromFile("examples/resources/textureshader.vert",
- "examples/resources/textureshader.frag");
+ textureProgram.compileShadersFromFile(
+ "examples/resources/textureshader.vert",
+ "examples/resources/textureshader.frag");
textureProgram.linkShaders();
Texture fountain = ResourceManager::getTexture(
@@ -52,7 +53,8 @@ int main()
glActiveTexture(GL_TEXTURE0);
- GLint texture_location = textureProgram.getUniformLocation("texture_sampler");
+ GLint texture_location =
+ textureProgram.getUniformLocation("texture_sampler");
glUniform1i(texture_location, 0);
sp.draw({0.f, 0.f, 64.f, 64.f}, {0, 0, 1, 1}, texture.id,