Implement movement with the mouse.

This commit is contained in:
2018-04-11 13:03:34 +02:00
parent 0145391450
commit 63e487afce
3 changed files with 44 additions and 10 deletions

View File

@@ -68,6 +68,8 @@ namespace fmri
float layerAlpha;
float interactionAlpha;
Color pathColor;
bool mouse_1_pressed = false;
bool mouse_2_pressed = false;
} options;
std::array<float, 3> pos;
std::array<float, 2> angle;
@@ -83,6 +85,7 @@ namespace fmri
void move(unsigned char key, bool sprint);
void updateVisualisers();
void idleFunc();
std::string debugInfo() const;
void renderOverlayText() const;