diff options
Diffstat (limited to 'examples/simplegame/main.cpp')
-rw-r--r-- | examples/simplegame/main.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/simplegame/main.cpp b/examples/simplegame/main.cpp index 04d63ec0..a631e45b 100644 --- a/examples/simplegame/main.cpp +++ b/examples/simplegame/main.cpp @@ -22,16 +22,16 @@ int main() window.create("Simple Game", 800, 640); SpriteBatch sp; - program.compileShadersFromFile("resources/textureshader.vert", "resources/textureshader.frag"); + program.compileShadersFromFile("examples/simplegame/textureshader.vert", + "examples/simplegame/textureshader.frag"); program.linkShaders(); - Texture fountain = - ResourceManager::getTexture("/home/yannherklotz/Github/YAGE/tests/" - "resources/dngn_blood_fountain.png"); + Texture fountain = ResourceManager::getTexture( + "examples/simplegame/dngn_blood_fountain.png"); cout << "texture: " << fountain.width << ", " << fountain.height << '\n'; - Camera2D camera(800, 640); + Camera camera(800, 640); while (!window.shouldClose()) { window.clearBuffer(); @@ -44,7 +44,8 @@ int main() GLint texture_location = program.getUniformLocation("texture_sampler"); glUniform1i(texture_location, 0); - sp.draw({0.f, 0.f, 64.f, 64.f}, {0, 0, 1, 1}, fountain.id, Colour(255, 0, 255, 255), 0); + sp.draw({0.f, 0.f, 64.f, 64.f}, {0, 0, 1, 1}, fountain.id, + Colour(255, 0, 255, 255), 0); sp.render(); glBindTexture(GL_TEXTURE_2D, 0); |