00001 #ifndef _OF_APP_RUNNER 00002 #define _OF_APP_RUNNER 00003 00004 00005 #include "ofMain.h" 00006 #include "ofBaseApp.h" 00007 #include "ofAppBaseWindow.h" 00008 #include "ofAppGlutWindow.h" 00009 00010 void ofSetupOpenGL(ofAppBaseWindow * windowPtr, int w, int h, int screenMode); // sets up the opengl context! 00011 void ofSetupOpenGL(int w, int h, int screenMode); // sets up the opengl context! 00012 void ofRunApp(ofBaseApp * OFSA = NULL); 00013 00014 //-------------------------- time 00015 float ofGetFrameRate(); 00016 int ofGetFrameNum(); 00017 void ofSetFrameRate(int targetRate); 00018 void ofSleepMillis(int millis); 00019 //-------------------------- cursor 00020 void ofHideCursor(); 00021 void ofShowCursor(); 00022 //-------------------------- window / screen 00023 int ofGetWindowPositionX(); 00024 int ofGetWindowPositionY(); 00025 int ofGetScreenWidth(); 00026 int ofGetScreenHeight(); 00027 int ofGetWindowMode(); 00028 int ofGetWidth(); // <-- should we call this ofGetWindowWidth? 00029 int ofGetHeight(); 00030 00031 void ofSetWindowPosition(int x, int y); 00032 void ofSetWindowShape(int width, int height); 00033 void ofSetWindowTitle(string title); 00034 void ofEnableSetupScreen(); 00035 void ofDisableSetupScreen(); 00036 void ofSetFullscreen(bool fullscreen); 00037 void ofToggleFullscreen(); 00038 //-------------------------- sync 00039 void ofSetVerticalSync(bool bSync); 00040 00041 00042 00043 #endif