1 #ifndef BUBBLECURSOR_HPP
2 #define BUBBLECURSOR_HPP
4 #include <glm/vec2.hpp>
6 #include <glm/gtx/epsilon.hpp>
8 #include <GLFW/glfw3.h>
14 #define MOUSE_MIN_MOVE 0.3
15 #define MOUSE_MAX_MOVE 3.5
16 #define MOUSE_CUTOFF 200
17 #define BUBBLE_POINTS 50
63 void update(
double deltaT);
67 void keyCallback(GLFWwindow *window,
int key,
int scancode,
int action,
int mode);
73 #endif //MOUSESEMANTICS_HPP
void update(double deltaT)
Definition: bubbleCursor.cpp:78
std::vector< glm::vec2 > population
Definition: bubbleCursor.hpp:54
bool enableDrawing
Definition: bubbleCursor.hpp:55
void generateRandomPopulation()
Definition: bubbleCursor.cpp:61
GLuint vboPositions
Definition: bubbleCursor.hpp:52
void setShader(Shader *shader)
Definition: bubbleCursor.cpp:36
void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mode)
Definition: bubbleCursor.cpp:84
BubbleCursor(Scene *scene, Texture *texture)
Definition: bubbleCursor.cpp:18
unsigned int getDistance()
Definition: bubbleCursor.hpp:70
Encapsulates the Rendering Engine, holds a complete scene and it's assets.
Definition: scene.hpp:71
Scene * scene
Definition: sceneObject.hpp:68
virtual ~BubbleCursor()
Definition: bubbleCursor.cpp:27
Encapsulates a texture in the GPU.
Definition: texture.hpp:10
void updateDistanceState(unsigned int _distance)
Definition: bubbleCursor.cpp:32
glm::vec2 latestPos
Definition: bubbleCursor.hpp:49
This class is rendering multiple circles (called bubbles in the paper) that are randomly placed on th...
Definition: bubbleCursor.hpp:47
Encapsulates a shader program.
Definition: shader.hpp:9
Texture * texture
Definition: bubbleCursor.hpp:53
int distance
Definition: bubbleCursor.hpp:50
The base class of the objects which are rendered.
Definition: sceneObject.hpp:30
void draw()
Definition: bubbleCursor.cpp:95
Shader * shader
Definition: sceneObject.hpp:70
GLFWwindow * window
Definition: bubbleCursor.hpp:51
bool drawingEnabled()
Definition: bubbleCursor.cpp:91