More trackball/camera work

This commit is contained in:
Hans-Christian Helltegen
2014-04-28 16:02:27 -04:00
parent ed93372c8b
commit a80c5d45d4
4 changed files with 92 additions and 21 deletions
@@ -59,13 +59,18 @@ public:
private:
glm::vec3 mapToTrackball(glm::vec2 mousePos);
void trackballRotate(int x, int y);
Camera *camera_;
Camera* camera_;
bool enabled_;
SceneGraphNode *node_;
double dt_;
glm::vec3 _lastTrackballPos;
bool _leftMouseButtonDown, _isMouseBeingPressedAndHeld;
// used for calling when updating and deallocation
std::vector<ExternalControl*> controllers_;