reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofAppRunner.h File Reference
#include "ofWindowSettings.h"
#include "ofConstants.h"
#include "ofMainLoop.h"

Go to the source code of this file.

Functions

void ofInit ()
 
void ofSetupOpenGL (int w, int h, ofWindowMode screenMode)
 
std::shared_ptr< ofAppBaseWindowofCreateWindow (const ofWindowSettings &settings)
 
std::shared_ptr< ofMainLoopofGetMainLoop ()
 
void ofSetMainLoop (const std::shared_ptr< ofMainLoop > &mainLoop)
 
template<typename Window >
void ofSetupOpenGL (const std::shared_ptr< Window > &windowPtr, int w, int h, ofWindowMode screenMode)
 
void ofSetupOpenGL (const std::shared_ptr< ofAppGLFWWindow > &windowPtr, int w, int h, ofWindowMode screenMode)
 
template<typename Window >
void ofSetupOpenGL (Window *windowPtr, int w, int h, ofWindowMode screenMode)
 
int ofRunApp (std::shared_ptr< ofBaseApp > &&OFSA)
 
int ofRunApp (ofBaseApp *OFSA=nullptr)
 
void ofRunApp (const std::shared_ptr< ofAppBaseWindow > &window, std::shared_ptr< ofBaseApp > &&app)
 
int ofRunMainLoop ()
 
ofBaseAppofGetAppPtr ()
 
void ofExit (int status=0)
 
bool ofIsCurrentThreadTheMainThread ()
 
std::thread::id ofGetMainThreadId ()
 
float ofGetFrameRate ()
 
float ofGetTargetFrameRate ()
 
uint64_t ofGetFrameNum ()
 
void ofSetFrameRate (int targetRate)
 
double ofGetLastFrameTime ()
 
void ofSetTimeModeSystem ()
 
uint64_t ofGetFixedStepForFps (double fps)
 
void ofSetTimeModeFixedRate (uint64_t stepNanos=ofGetFixedStepForFps(60))
 
void ofSetTimeModeFiltered (float alpha=0.9)
 
void ofSetOrientation (ofOrientation orientation, bool vFlip=true)
 
ofOrientation ofGetOrientation ()
 
void ofHideCursor ()
 
void ofShowCursor ()
 
int ofGetWindowPositionX ()
 
int ofGetWindowPositionY ()
 
int ofGetScreenWidth ()
 
int ofGetScreenHeight ()
 
int ofGetWindowMode ()
 
int ofGetWidth ()
 
int ofGetHeight ()
 
int ofGetWindowWidth ()
 
int ofGetWindowHeight ()
 
std::string ofGetClipboardString ()
 
void ofSetClipboardString (const std::string &str)
 
float ofRandomWidth ()
 
float ofRandomHeight ()
 
bool ofDoesHWOrientation ()
 
glm::vec2 ofGetWindowSize ()
 
ofRectangle ofGetWindowRect ()
 
ofAppBaseWindowofGetWindowPtr ()
 
std::shared_ptr< ofAppBaseWindowofGetCurrentWindow ()
 
void ofSetWindowPosition (int x, int y)
 
void ofSetWindowShape (int width, int height)
 
void ofSetWindowTitle (std::string title)
 
void ofEnableSetupScreen ()
 
void ofDisableSetupScreen ()
 
void ofSetFullscreen (bool fullscreen)
 
void ofToggleFullscreen ()
 
void ofSetVerticalSync (bool bSync)
 
ofCoreEventsofEvents ()
 
void ofSetCurrentRenderer (std::shared_ptr< ofBaseRenderer > renderer, bool setDefaults=false)
 
std::shared_ptr< ofBaseRenderer > & ofGetCurrentRenderer ()
 
void ofSetEscapeQuitsApp (bool bQuitOnEsc)
 

Function Documentation

◆ ofCreateWindow()

std::shared_ptr< ofAppBaseWindow > ofCreateWindow ( const ofWindowSettings settings)

◆ ofDisableSetupScreen()

void ofDisableSetupScreen ( )

◆ ofDoesHWOrientation()

bool ofDoesHWOrientation ( )

◆ ofEnableSetupScreen()

void ofEnableSetupScreen ( )

◆ ofEvents()

ofCoreEvents & ofEvents ( )

◆ ofExit()

void ofExit ( int  status = 0)

◆ ofGetAppPtr()

ofBaseApp * ofGetAppPtr ( )

◆ ofGetClipboardString()

std::string ofGetClipboardString ( )

◆ ofGetCurrentRenderer()

std::shared_ptr< ofBaseRenderer > & ofGetCurrentRenderer ( )

◆ ofGetCurrentWindow()

std::shared_ptr< ofAppBaseWindow > ofGetCurrentWindow ( )

◆ ofGetFixedStepForFps()

uint64_t ofGetFixedStepForFps ( double  fps)

◆ ofGetFrameNum()

uint64_t ofGetFrameNum ( )

◆ ofGetFrameRate()

float ofGetFrameRate ( )

◆ ofGetHeight()

int ofGetHeight ( )

◆ ofGetLastFrameTime()

double ofGetLastFrameTime ( )

◆ ofGetMainLoop()

std::shared_ptr< ofMainLoop > ofGetMainLoop ( )

◆ ofGetMainThreadId()

std::thread::id ofGetMainThreadId ( )

◆ ofGetOrientation()

ofOrientation ofGetOrientation ( )

◆ ofGetScreenHeight()

int ofGetScreenHeight ( )

◆ ofGetScreenWidth()

int ofGetScreenWidth ( )

◆ ofGetTargetFrameRate()

float ofGetTargetFrameRate ( )

◆ ofGetWidth()

int ofGetWidth ( )

◆ ofGetWindowHeight()

int ofGetWindowHeight ( )

◆ ofGetWindowMode()

int ofGetWindowMode ( )

◆ ofGetWindowPositionX()

int ofGetWindowPositionX ( )

◆ ofGetWindowPositionY()

int ofGetWindowPositionY ( )

◆ ofGetWindowPtr()

ofAppBaseWindow * ofGetWindowPtr ( )

◆ ofGetWindowRect()

ofRectangle ofGetWindowRect ( )

◆ ofGetWindowSize()

glm::vec2 ofGetWindowSize ( )

◆ ofGetWindowWidth()

int ofGetWindowWidth ( )

◆ ofHideCursor()

void ofHideCursor ( )

◆ ofInit()

void ofInit ( )

◆ ofIsCurrentThreadTheMainThread()

bool ofIsCurrentThreadTheMainThread ( )

◆ ofRandomHeight()

float ofRandomHeight ( )
Returns
a random number between 0 and the height of the window.

◆ ofRandomWidth()

float ofRandomWidth ( )
Returns
a random number between 0 and the width of the window.

◆ ofRunApp() [1/3]

void ofRunApp ( const std::shared_ptr< ofAppBaseWindow > &  window,
std::shared_ptr< ofBaseApp > &&  app 
)

◆ ofRunApp() [2/3]

int ofRunApp ( ofBaseApp OFSA = nullptr)

◆ ofRunApp() [3/3]

int ofRunApp ( std::shared_ptr< ofBaseApp > &&  OFSA)

◆ ofRunMainLoop()

int ofRunMainLoop ( )

◆ ofSetClipboardString()

void ofSetClipboardString ( const std::string &  str)

◆ ofSetCurrentRenderer()

void ofSetCurrentRenderer ( std::shared_ptr< ofBaseRenderer renderer,
bool  setDefaults = false 
)

◆ ofSetEscapeQuitsApp()

void ofSetEscapeQuitsApp ( bool  bQuitOnEsc)

◆ ofSetFrameRate()

void ofSetFrameRate ( int  targetRate)

◆ ofSetFullscreen()

void ofSetFullscreen ( bool  fullscreen)

◆ ofSetMainLoop()

void ofSetMainLoop ( const std::shared_ptr< ofMainLoop > &  mainLoop)

◆ ofSetOrientation()

void ofSetOrientation ( ofOrientation  orientation,
bool  vFlip = true 
)

◆ ofSetTimeModeFiltered()

void ofSetTimeModeFiltered ( float  alpha = 0.9)

◆ ofSetTimeModeFixedRate()

void ofSetTimeModeFixedRate ( uint64_t  stepNanos = ofGetFixedStepForFps(60))

◆ ofSetTimeModeSystem()

void ofSetTimeModeSystem ( )

◆ ofSetupOpenGL() [1/4]

void ofSetupOpenGL ( const std::shared_ptr< ofAppGLFWWindow > &  windowPtr,
int  w,
int  h,
ofWindowMode  screenMode 
)

◆ ofSetupOpenGL() [2/4]

template<typename Window >
void ofSetupOpenGL ( const std::shared_ptr< Window > &  windowPtr,
int  w,
int  h,
ofWindowMode  screenMode 
)

◆ ofSetupOpenGL() [3/4]

void ofSetupOpenGL ( int  w,
int  h,
ofWindowMode  screenMode 
)

◆ ofSetupOpenGL() [4/4]

template<typename Window >
void ofSetupOpenGL ( Window windowPtr,
int  w,
int  h,
ofWindowMode  screenMode 
)

◆ ofSetVerticalSync()

void ofSetVerticalSync ( bool  bSync)

◆ ofSetWindowPosition()

void ofSetWindowPosition ( int  x,
int  y 
)

◆ ofSetWindowShape()

void ofSetWindowShape ( int  width,
int  height 
)

◆ ofSetWindowTitle()

void ofSetWindowTitle ( std::string  title)

◆ ofShowCursor()

void ofShowCursor ( )

◆ ofToggleFullscreen()

void ofToggleFullscreen ( )