Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "testApp.h"
- //--------------------------------------------------------------
- void testApp::setup(){
- context.setupUsingXMLFile(ofToDataPath("openni/config/asus.xml", true));
- depthGenerator.setup(&context);
- // recordUser.setup( &context );
- // recordUser.setSmoothing(.1);
- // recordUser.setMaxNumberOfUsers(2);
- // recordUser.setUseMaskPixels(false);
- // recordUser.setUseCloudPoints(false);
- }
- //--------------------------------------------------------------
- void testApp::update(){
- context.update();
- depthGenerator.update();
- // recordUser.update();
- }
- //--------------------------------------------------------------
- void testApp::draw(){
- depthGenerator.draw(0, 0, 640, 480);
- // ofSetColor(255, 255, 255);
- // recordUser.draw();
- }
- //--------------------------------------------------------------
- void testApp::keyPressed(int key){
- }
- //--------------------------------------------------------------
- void testApp::keyReleased(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){
- }
- //--------------------------------------------------------------
- void testApp::gotMessage(ofMessage msg){
- }
- //--------------------------------------------------------------
- void testApp::dragEvent(ofDragInfo dragInfo){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement