From bb852cee91b52b71fccade7d4a1ef065eb0de2f0 Mon Sep 17 00:00:00 2001 From: Comment Date: Fri, 14 Mar 2014 00:51:24 +0000 Subject: nice --- test-tycbutton/src/testApp.cpp | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 test-tycbutton/src/testApp.cpp (limited to 'test-tycbutton/src/testApp.cpp') diff --git a/test-tycbutton/src/testApp.cpp b/test-tycbutton/src/testApp.cpp new file mode 100644 index 0000000..422b728 --- /dev/null +++ b/test-tycbutton/src/testApp.cpp @@ -0,0 +1,57 @@ +#include "testApp.h" + +//-------------------------------------------------------------- +void testApp::setup(){ + ofSetVerticalSync(true); + + ofBackground(0,0,0); + ofSetColor(255,255,255); + + button.start(); +} + +//-------------------------------------------------------------- +void testApp::update(){ + if (button.action()) cout<<"SNAP!"<-1) ofBackground(b,b,b); +} + +//-------------------------------------------------------------- + +//-------------------------------------------------------------- +void testApp::keyPressed (int key){ + +} + +//-------------------------------------------------------------- +void testApp::mouseMoved(int x, int y ){ +} + +//-------------------------------------------------------------- +void testApp::mouseDragged(int x, int y, int button){ +} + +//-------------------------------------------------------------- +void testApp::mousePressed(int x, int y, int button){ +} + +//-------------------------------------------------------------- +void testApp::mouseReleased(int x, int y, int button){ + +} + +//-------------------------------------------------------------- +void testApp::windowResized(int w, int h){ + +} + -- cgit v1.2.3