| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | #include <sstream>#include "client/Game.h"Game::Game() : texture("resources/textures.png"){    m.add({0, 0, 0.9, 0, 0, 1, 0, 0});    m.add({0, 1, 0.9, 0, 1, 1, 0, 0});    m.add({1, 0, 0.9, 1, 0, 1, 0, 0});    m.build();}void Game::tick(const Keys& keys, const MouseButtons& mButtons, Camera& cam){    (void) mButtons;        if(keys.down.isDown())    {        pos.addMul(cam.getFlatBack(), 0.1f);    }    if(keys.up.isDown())    {        pos.addMul(cam.getFlatFront(), 0.1f);    }    if(keys.left.isDown())    {        pos.addMul(cam.getFlatLeft(), 0.1f);    }    if(keys.right.isDown())    {        pos.addMul(cam.getFlatRight(), 0.1f);    }    if(keys.jump.isDown())    {        pos.addMul(cam.getFlatUp(), 0.1f);    }    if(keys.sneak.isDown())    {        pos.addMul(cam.getFlatDown(), 0.1f);    }    cam.storePosition();    cam.setPosition(pos, 0, 0);}void Game::renderWorld(float lag, MatrixStack& stack, Shader& sh){    (void) lag;    (void) stack;    (void) sh;    texture.bind(0);    m.draw();}void Game::renderTextOverlay(float lag, MatrixStack& stack, Shader& sh, FontRenderer& fr){    (void) lag;    stack.get().scale(2.0f, 2.0f, 2.0f);    sh.setMatrix("model", stack.get().getValues());    fr.drawString(0, 0, "Das ist ein Test");}
 |