topical media & game development

talk show tell print

lib-of-vs-libs-openFrameworks-app-ofAppRunner.h / h



  ifndef _OF_APP_RUNNER
  define _OF_APP_RUNNER
  
  include <ofMain.h>
  include <ofBaseApp.h>
  include <ofAppBaseWindow.h>
  include <ofAppGlutWindow.h>
  
  void                 ofSetupOpenGL(ofAppBaseWindow * windowPtr, int w, int h, int screenMode);        // sets up the opengl context!
  void                 ofSetupOpenGL(int w, int h, int screenMode);        // sets up the opengl context!
  void                 ofRunApp(ofBaseApp * OFSA = NULL);
  
  //-------------------------- time
  float                 ofGetFrameRate();
  int                        ofGetFrameNum();
  void                 ofSetFrameRate(int targetRate);
  void                ofSleepMillis(int millis);
  //-------------------------- cursor
  void                 ofHideCursor();
  void                 ofShowCursor();
  //-------------------------- window / screen
  int                 ofGetWindowPositionX();
  int                 ofGetWindowPositionY();
  int                 ofGetScreenWidth();
  int                 ofGetScreenHeight();
  int                        ofGetWindowMode();        
  int                 ofGetWidth();                        // <-- should we call this ofGetWindowWidth?
  int                 ofGetHeight();
  
  void                 ofSetWindowPosition(int x, int y);
  void                 ofSetWindowShape(int width, int height);
  void                 ofSetWindowTitle(string title);
  void                ofEnableSetupScreen();
  void                ofDisableSetupScreen();
  void                ofSetFullscreen(bool fullscreen);
  void                ofToggleFullscreen();
  //-------------------------- sync                                        
  void                 ofSetVerticalSync(bool bSync);
  
  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.