ofDocsdocumentation application ofAppGlutWindow

ofAppGlutWindow

Default window manager based on glut. This class provides all the functionality to create a window, change/query it's size, position... and all the keyboard and mouse events.

Introduced in 006 along with ofAppBaseWindow to provide a mean of substituting the underlying windowing toolkit in oF.

The functionality provided by this class or any other inheriting from ofAppBaseWindow should not be accessed directly but through the functions available in ofAppRunner.


allowsMultiWindow( )

bool allowsMultiWindow()

close( )

void close()

disableSetupScreen( )

void disableSetupScreen()

display( )

void display()

doesLoop( )

bool doesLoop()

dragEvent( ... )

void dragEvent(char **fileNames, int howManyFiles, int dragX, int dragY)

draw( )

void draw()

enableSetupScreen( )

void enableSetupScreen()

entry_cb( ... )

void entry_cb(int state)

events( )

ofCoreEvents & events()

exit_cb( )

void exit_cb()

finishRender( )

void finishRender()

getHeight( )

int getHeight()

getOrientation( )

ofOrientation getOrientation()

getScreenSize( )

glm::vec2 getScreenSize()

getWidth( )

int getWidth()

getWindowMode( )

ofWindowMode getWindowMode()

getWindowPosition( )

glm::vec2 getWindowPosition()

getWindowSize( )

glm::vec2 getWindowSize()

hideCursor( )

void hideCursor()

idle_cb( )

void idle_cb()

keyboard_cb( ... )

void keyboard_cb(unsigned char key, int x, int y)

keyboard_up_cb( ... )

void keyboard_up_cb(unsigned char key, int x, int y)

loop( )

void loop()

motion_cb( ... )

void motion_cb(int x, int y)

mouse_cb( ... )

void mouse_cb(int button, int state, int x, int y)

needsPolling( )

bool needsPolling()

ofAppGlutWindow( )

ofAppGlutWindow()

passive_motion_cb( ... )

void passive_motion_cb(int x, int y)

pollEvents( )

void pollEvents()

resize_cb( ... )

void resize_cb(int w, int h)

setDoubleBuffering( ... )

void setDoubleBuffering(bool _bDoubleBuffered)

setFullscreen( ... )

void setFullscreen(bool fullScreen)

setGlutDisplayString( ... )

void setGlutDisplayString(string str)

setOrientation( ... )

void setOrientation(ofOrientation orientation)

setVerticalSync( ... )

void setVerticalSync(bool enabled)

setWindowIcon( ... )

void setWindowIcon(const ofPixels &iconPixels)

setWindowIcon( ... )

void setWindowIcon(const string &path)

setWindowPosition( ... )

void setWindowPosition(int x, int y)

setWindowShape( ... )

void setWindowShape(int w, int h)

setWindowTitle( ... )

void setWindowTitle(string title)

setup( ... )

void setup(const ofGLWindowSettings &settings)

showCursor( )

void showCursor()

special_key_cb( ... )

void special_key_cb(int key, int x, int y)

special_key_to_of( ... )

int special_key_to_of(int key)

special_key_up_cb( ... )

void special_key_up_cb(int key, int x, int y)

startRender( )

void startRender()

swapBuffers( )

void swapBuffers()

toggleFullscreen( )

void toggleFullscreen()

update( )

void update()

~ofAppGlutWindow( )

~ofAppGlutWindow()