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.cpp File Reference
#include "ofAppRunner.h"
#include "ofBaseApp.h"
#include "ofAppBaseWindow.h"
#include "ofLog.h"
#include "ofMath.h"
#include "ofGraphicsBaseTypes.h"
#include "ofRectangle.h"
#include "ofMainLoop.h"
#include "ofAppGLFWWindow.h"

Functions

void ofSetupOpenGL (const shared_ptr< ofAppGLFWWindow > &windowPtr, int w, int h, ofWindowMode screenMode)
 
void ofExitCallback ()
 
void ofURLFileLoaderShutdown ()
 
void ofTrueTypeShutdown ()
 
void ofCloseFreeImage ()
 
void ofSoundShutdown ()
 
void ofInit ()
 
shared_ptr< ofMainLoopofGetMainLoop ()
 
void ofSetMainLoop (const shared_ptr< ofMainLoop > &newMainLoop)
 
int ofRunApp (ofBaseApp *OFSA)
 
int ofRunApp (shared_ptr< ofBaseApp > &&app)
 
void ofRunApp (const shared_ptr< ofAppBaseWindow > &window, shared_ptr< ofBaseApp > &&app)
 
int ofRunMainLoop ()
 
void ofSetupOpenGL (int w, int h, ofWindowMode screenMode)
 
shared_ptr< ofAppBaseWindowofCreateWindow (const ofWindowSettings &settings)
 
ofCoreEventsofEvents ()
 
void ofSetEscapeQuitsApp (bool bQuitOnEsc)
 
shared_ptr< ofBaseRenderer > & ofGetCurrentRenderer ()
 
ofBaseAppofGetAppPtr ()
 
std::thread::id ofGetMainThreadId ()
 
bool ofIsCurrentThreadTheMainThread ()
 
ofAppBaseWindowofGetWindowPtr ()
 
std::shared_ptr< ofAppBaseWindowofGetCurrentWindow ()
 
void ofExit (int status)
 
void ofHideCursor ()
 
void ofShowCursor ()
 
void ofSetOrientation (ofOrientation orientation, bool vFlip)
 
ofOrientation ofGetOrientation ()
 
void ofSetWindowPosition (int x, int y)
 
void ofSetWindowShape (int width, int height)
 
int ofGetWindowPositionX ()
 
int ofGetWindowPositionY ()
 
int ofGetScreenWidth ()
 
int ofGetScreenHeight ()
 
int ofGetWidth ()
 
int ofGetHeight ()
 
int ofGetWindowWidth ()
 
int ofGetWindowHeight ()
 
std::string ofGetClipboardString ()
 
void ofSetClipboardString (const std::string &str)
 
bool ofDoesHWOrientation ()
 
glm::vec2 ofGetWindowSize ()
 
float ofRandomWidth ()
 Get a random floating point number between 0 and the screen width.
 
float ofRandomHeight ()
 Get a random floating point number between 0 and the screen height.
 
ofRectangle ofGetWindowRect ()
 
void ofSetWindowTitle (std::string title)
 
void ofEnableSetupScreen ()
 
void ofDisableSetupScreen ()
 
void ofToggleFullscreen ()
 
void ofSetFullscreen (bool fullscreen)
 
int ofGetWindowMode ()
 
void ofSetVerticalSync (bool bSync)
 

Function Documentation

◆ ofCloseFreeImage()

void ofCloseFreeImage ( )

◆ ofCreateWindow()

shared_ptr< ofAppBaseWindow > ofCreateWindow ( const ofWindowSettings settings)

◆ ofDisableSetupScreen()

void ofDisableSetupScreen ( )

◆ ofDoesHWOrientation()

bool ofDoesHWOrientation ( )

◆ ofEnableSetupScreen()

void ofEnableSetupScreen ( )

◆ ofEvents()

ofCoreEvents & ofEvents ( )

◆ ofExit()

void ofExit ( int  status)

◆ ofExitCallback()

void ofExitCallback ( )

◆ ofGetAppPtr()

ofBaseApp * ofGetAppPtr ( )

◆ ofGetClipboardString()

std::string ofGetClipboardString ( )

◆ ofGetCurrentRenderer()

shared_ptr< ofBaseRenderer > & ofGetCurrentRenderer ( )

◆ ofGetCurrentWindow()

std::shared_ptr< ofAppBaseWindow > ofGetCurrentWindow ( )

◆ ofGetHeight()

int ofGetHeight ( )

◆ ofGetMainLoop()

shared_ptr< ofMainLoop > ofGetMainLoop ( )

◆ ofGetMainThreadId()

std::thread::id ofGetMainThreadId ( )

◆ ofGetOrientation()

ofOrientation ofGetOrientation ( )

◆ ofGetScreenHeight()

int ofGetScreenHeight ( )

◆ ofGetScreenWidth()

int ofGetScreenWidth ( )

◆ 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 ( )

Get a random floating point number between 0 and the screen height.

Returns
a random number between 0 and the height of the window.

◆ ofRandomWidth()

float ofRandomWidth ( )

Get a random floating point number between 0 and the screen width.

Returns
a random number between 0 and the width of the window.

◆ ofRunApp() [1/3]

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

◆ ofRunApp() [2/3]

int ofRunApp ( ofBaseApp OFSA)

◆ ofRunApp() [3/3]

int ofRunApp ( shared_ptr< ofBaseApp > &&  app)

◆ ofRunMainLoop()

int ofRunMainLoop ( )

◆ ofSetClipboardString()

void ofSetClipboardString ( const std::string &  str)

◆ ofSetEscapeQuitsApp()

void ofSetEscapeQuitsApp ( bool  bQuitOnEsc)

◆ ofSetFullscreen()

void ofSetFullscreen ( bool  fullscreen)

◆ ofSetMainLoop()

void ofSetMainLoop ( const shared_ptr< ofMainLoop > &  newMainLoop)

◆ ofSetOrientation()

void ofSetOrientation ( ofOrientation  orientation,
bool  vFlip 
)

◆ ofSetupOpenGL() [1/2]

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

◆ ofSetupOpenGL() [2/2]

void ofSetupOpenGL ( 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 ( )

◆ ofSoundShutdown()

void ofSoundShutdown ( )

◆ ofToggleFullscreen()

void ofToggleFullscreen ( )

◆ ofTrueTypeShutdown()

void ofTrueTypeShutdown ( )

◆ ofURLFileLoaderShutdown()

void ofURLFileLoaderShutdown ( )