1st stage of adding an FPS camera
This commit is contained in:
parent
12933729b9
commit
0d9da1cc25
4
main.cpp
4
main.cpp
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user