| 33 | } |
| 34 | |
| 35 | void ofApp::update() |
| 36 | { |
| 37 | // drag the circle around if the mouse is pressed while over it // |
| 38 | if (ofGetMousePressed() && gui->getMouseDown() == false){ |
| 39 | ofPoint mouse = ofPoint(ofGetMouseX(), ofGetMouseY()); |
| 40 | if (circle->inside(mouse)) { |
| 41 | circle->x = mouse.x; |
| 42 | circle->y = mouse.y; |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | void ofApp::draw() |
| 48 | { |
nothing calls this directly
no test coverage detected