Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwoods committed Jun 27, 2012
1 parent e9ecb31 commit 2952c1a
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 18 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Expand Up @@ -10,10 +10,4 @@ obj/
bin/
build/
!data/

*.vcxproj.user
*.suo
*.sdf
ipch/
Debug/
Release/
xcuserdata/
17 changes: 6 additions & 11 deletions src/ofxGrabCam.cpp
Expand Up @@ -9,16 +9,13 @@
#include "ofxGrabCam.h"

//--------------------------
ofxGrabCam::ofxGrabCam(bool useMouseListeners) {
this->mouseDown = false;
this->altDown = false;
this->handDown = false;
this->resetDown = false;
this->pickCursorFlag = false;
this->drawCursor = false;
this->drawCursorSize = 0.1f;
this->fixUpwards = true;
ofxGrabCam::ofxGrabCam(bool useMouseListeners) : initialised(true), mouseDown(false), handDown(false), altDown(false), pickCursorFlag(false), drawCursor(false), drawCursorSize(0.1), fixUpwards(true) {

this->initialised = false;
this->mouseActions = true;
this->trackballRadius = 0.5f;
this->resetDown = 0;

ofCamera::setNearClip(0.1);
addListeners();
reset();
Expand Down Expand Up @@ -86,8 +83,6 @@ void ofxGrabCam::end() {
//--------------------------
void ofxGrabCam::reset() {
ofCamera::resetTransform();
ofCamera::setPosition(2.0f, 1.0f, 2.0f);
ofCamera::lookAt( ofVec3f(0.0f, 0.0f, 0.0f) );
}

//--------------------------
Expand Down

0 comments on commit 2952c1a

Please sign in to comment.