From f949692714e72a0e2d45ebb6a5d698424ab71dee Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 25 Dec 2017 13:54:09 +0000 Subject: [Broken] Reorganising and fixing. --- examples/simplegame/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/simplegame') 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, -- cgit