Go to the documentation of this file.00001 #ifndef _OF_BASE_APP
00002 #define _OF_BASE_APP
00003
00004 #include "ofTypes.h"
00005
00006 class ofBaseApp{
00007
00008 public:
00009 ofBaseApp() {
00010 mouseX = mouseY = 0;
00011 }
00012
00013 virtual ~ofBaseApp(){}
00014
00015 virtual void setup(){}
00016 virtual void update(){}
00017 virtual void draw(){}
00018 virtual void exit(){}
00019
00020
00021 virtual void windowResized(int w, int h){}
00022
00023 virtual void keyPressed( int key ){}
00024 virtual void keyReleased( int key ){}
00025
00026 virtual void mouseMoved( int x, int y ){}
00027 virtual void mouseDragged( int x, int y, int button ){}
00028 virtual void mousePressed( int x, int y, int button ){}
00029 virtual void mouseReleased(){}
00030 virtual void mouseReleased(int x, int y, int button ){}
00031
00032 virtual void audioReceived( float * input, int bufferSize, int nChannels ){}
00033 virtual void audioRequested( float * output, int bufferSize, int nChannels ){}
00034
00035 int mouseX, mouseY;
00036 };
00037
00038 #endif
00039
00040