Advertisement
Guest User

Untitled

a guest
Sep 10th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.83 KB | None | 0 0
  1. #include "testApp.h"
  2.  
  3.  
  4. //--------------------------------------------------------------
  5. void testApp::setup(){
  6.     context.setupUsingXMLFile(ofToDataPath("openni/config/asus.xml", true));
  7.     depthGenerator.setup(&context);
  8.    
  9. //    recordUser.setup( &context );
  10. //    recordUser.setSmoothing(.1);
  11. //    recordUser.setMaxNumberOfUsers(2);
  12. //    recordUser.setUseMaskPixels(false);
  13. //    recordUser.setUseCloudPoints(false);
  14.    
  15. }
  16.  
  17. //--------------------------------------------------------------
  18. void testApp::update(){
  19.     context.update();
  20.     depthGenerator.update();
  21. //    recordUser.update();
  22. }
  23.  
  24. //--------------------------------------------------------------
  25. void testApp::draw(){
  26.     depthGenerator.draw(0, 0, 640, 480);
  27. //    ofSetColor(255, 255, 255);
  28. //  recordUser.draw();
  29. }
  30.  
  31. //--------------------------------------------------------------
  32. void testApp::keyPressed(int key){
  33.  
  34. }
  35.  
  36. //--------------------------------------------------------------
  37. void testApp::keyReleased(int key){
  38.  
  39. }
  40.  
  41. //--------------------------------------------------------------
  42. void testApp::mouseMoved(int x, int y ){
  43.  
  44. }
  45.  
  46. //--------------------------------------------------------------
  47. void testApp::mouseDragged(int x, int y, int button){
  48.  
  49. }
  50.  
  51. //--------------------------------------------------------------
  52. void testApp::mousePressed(int x, int y, int button){
  53.  
  54. }
  55.  
  56. //--------------------------------------------------------------
  57. void testApp::mouseReleased(int x, int y, int button){
  58.  
  59. }
  60.  
  61. //--------------------------------------------------------------
  62. void testApp::windowResized(int w, int h){
  63.  
  64. }
  65.  
  66. //--------------------------------------------------------------
  67. void testApp::gotMessage(ofMessage msg){
  68.  
  69. }
  70.  
  71. //--------------------------------------------------------------
  72. void testApp::dragEvent(ofDragInfo dragInfo){
  73.  
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement