1st stage of adding an FPS camera

This commit is contained in:
Functioning Member of Society 2022-10-28 23:55:27 -04:00
parent 12933729b9
commit 0d9da1cc25

View File

@ -8,6 +8,7 @@
#include <cstdio>
#include <random>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
NodeRenderer renderer;
//BlockManager blockManager;
@ -71,6 +72,9 @@ void display()
glFlush();
glutSwapBuffers();
sf::Vector2i lastMousePos = sf::Vector2i(0, 0);
sf::Vector2i mouseDelta = sf::Mouse::getPosition() - lastMousePos;
lastMousePos = sf::Mouse::getPosition();
glutPostRedisplay();
}