topical media & game development
lib-of-vs-libs-openFrameworks-app-ofBaseApp.h / h
ifndef _OF_BASE_APP
define _OF_BASE_APP
include <ofTypes.h>
class ofBaseApp{
public:
ofBaseApp() {
mouseX = mouseY = 0;
}
virtual ~ofBaseApp(){}
virtual void setup(){}
virtual void update(){}
virtual void draw(){}
virtual void exit(){}
virtual void windowResized(int w, int h){}
virtual void keyPressed( int key ){}
virtual void keyReleased( int key ){}
virtual void mouseMoved( int x, int y ){}
virtual void mouseDragged( int x, int y, int button ){}
virtual void mousePressed( int x, int y, int button ){}
virtual void mouseReleased(){}
virtual void mouseReleased(int x, int y, int button ){}
virtual void audioReceived( float * input, int bufferSize, int nChannels ){}
virtual void audioRequested( float * output, int bufferSize, int nChannels ){}
int mouseX, mouseY; // for processing heads
};
endif
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.