void noopDeleter(Window *)

shared_ptr ofCreateWindow(const ofWindowSettings &settings)

Creates a new app window and returns it as a shared_ptr. You can change the window's settings, like its size, position, decoration, and resizability in its ofWindowSettings.

To share assets between multiple windows, such as for drawing any ofBaseHasPixels object, you have to share contexts. This can be done by pointing a window to the shareContextWith field in another window's settings, as in the multiWindowOneAppExample.

bool ofDoesHWOrientation()

This returns whether your current device does hardware orientation. An iPhone, for instance, does hardware orientation, which you might notice when you tilt your iPhone to the side, hence ofDoesHWOrientation() would return true. Tilting your laptop to the side does not do the same thing, hence ofDoesHWOrientation() would return false.

ofCoreEvents & ofEvents()

void ofExit(int status=0)

ofBaseApp * ofGetAppPtr()

Useful to access the variables in the main app from other classes. The pointer returned by this function has to be cast from an ofBaseApp pointer, to a pointer to your inherited class, before being used.
ie:

shared_ptr & ofGetCurrentRenderer()

uint64_t ofGetFrameNum()

This returns the current frame as an int, counting up to (depending on your system) 2147483647 before rolling over back to 0. Don't worry though, at 60 frames a second you have 68 years until it rolls over though.

int ofGetWindowPositionX()

This is the x position of your window inside your screen. How exactly this is returned is dependent on your operating system but it's pretty consistent across platforms.
note: this code is implemented inside the ofAppRunner

int ofGetWindowPositionY()

This is the y position of your window inside your screen. How exactly this is returned is dependent on your operating system but it's pretty consistent across platforms.
note: this code is implemented inside the ofAppRunner

float ofRandomWidth()

Documentation from code comments

void ofRunApp(shared_ptr window, shared_ptr app)

Begins the openGL cycle of the application. It's only called once from main function in main.cpp after setting the window with ofSetupOpenGL.
From 0.06 the app is deleted on exit, so you need to call this function as shown in syntax:

void ofSetAppPtr(shared_ptr appPtr)

void ofSetEscapeQuitsApp(bool bQuitOnEsc)

void ofSetFrameRate(int targetRate)

Attempts to set the frame rate to a given target by sleeping a certain amount per frame. The results of this may vary based if vertical sync is enabled or disabled (either at the card level or via code), because this locks the drawing to intervals where the screen refreshes.

void ofSetMainLoop(shared_ptr mainLoop)

void ofSetOrientation(ofOrientation orientation, bool vFlip=true)

void ofSetVerticalSync(bool bSync)

Synchronizes the redraw of the screen to the vertical refresh rate of the screen. The monitor or projector redraws the screen at usually 60 frames per second. If vertical sync is not enabled your application runs as fast as possible and the screen can be drawing half of one frame and half of the previous frame, creating an effect called tearing.

Vertical sync is enabled by default since 0.8.0. You can disable it calling ofSetVerticalSync(false).

void ofSetWindowPosition(int x, int y)

Moves the app window to the x and y coordinates specified. For example: coordinates of (0,0) would set the top-left corner of your app window to the top-left corner of the screen.
note: this code is implemented inside the ofAppRunner

void ofSetWindowTitle(string title)

Sets up the window aspect and mode. This function should be called only from the main function in main.cpp.
w and h are the width and height of the window.
screenMode can be one of:
- OF_WINDOW: normal window
- OF_FULLSCREEN: fullscreen, the size of the app will be that of the current screen resolution. The w and h parameters will be ignored.