ofAppGLFWWindow
This is the base class for the GLFW renderer that you can optionally use with openFrameworks. We've moved away from GLUT and towards GLFW for our windowing system. You probably won't deal with this a great deal (hopefully).
allowsMultiWindow( )
bool allowsMultiWindow()char_cb( ... )
void char_cb(GLFWwindow *windowP_, uint32_t key)close( )
void close()disableSetupScreen( )
void disableSetupScreen()doesLoop( )
bool doesLoop()draw( )
void draw()drop_cb( ... )
void drop_cb(GLFWwindow *windowP_, int numFiles, const char **dropString)This is the drag and drop callback. This should be handled in your ofBaseApp instance.
enableSetupScreen( )
void enableSetupScreen()entry_cb( ... )
void entry_cb(GLFWwindow *windowP_, int entered)error_cb( ... )
void error_cb(int errorCode, const char *errorDescription)events( )
ofCoreEvents & events()exit_cb( ... )
void exit_cb(GLFWwindow *windowP_)This is the exit callback that is called by your the ofAppRunner exit() method.
finishRender( )
void finishRender()framebuffer_size_cb( ... )
void framebuffer_size_cb(GLFWwindow *windowP_, int w, int h)getClipboardString( )
string getClipboardString()getCurrentMonitor( )
int getCurrentMonitor()getGLFWWindow( )
GLFWwindow * getGLFWWindow()getGLXContext( )
GLXContext getGLXContext()getHeight( )
int getHeight()Gets the height of the current window and is mirrored in the ofGetScreenHeight() method.
getOrientation( )
ofOrientation getOrientation()getPixelScreenCoordScale( )
int getPixelScreenCoordScale()getScreenSize( )
glm::vec2 getScreenSize()Gets the height of the current window and is mirrored in the ofGetWindowSize() method.
getSettings( )
ofGLFWWindowSettings getSettings()getWidth( )
int getWidth()Gets the height of the current window and is mirrored in the ofGetScreenWidth() method.
getWindowContext( )
void * getWindowContext()getWindowMode( )
ofWindowMode getWindowMode()Returns one of the following: OF_FULLSCREEN or OF_WINDOW.
getWindowPosition( )
glm::vec2 getWindowPosition()This returns the location of the window relative to the deivce that it's being displayed on.
getWindowShouldClose( )
bool getWindowShouldClose()getWindowSize( )
glm::vec2 getWindowSize()getX11Display( )
Display * getX11Display()getX11Window( )
Window getX11Window()getX11XIC( )
XIC getX11XIC()hideCursor( )
void hideCursor()iconify( ... )
void iconify(bool bIconify)isWindowActive( )
bool isWindowActive()Hardcoded to return true right now.
isWindowIconified( )
bool isWindowIconified()isWindowResizeable( )
bool isWindowResizeable()keyboard_cb( ... )
void keyboard_cb(GLFWwindow *windowP_, int key, int scancode, int action, int mods)listMonitors( )
void listMonitors()listVideoModes( )
void listVideoModes()loop( )
void loop()makeCurrent( )
void makeCurrent()motion_cb( ... )
void motion_cb(GLFWwindow *windowP_, double x, double y)mouse_cb( ... )
void mouse_cb(GLFWwindow *windowP_, int button, int state, int mods)needsPolling( )
bool needsPolling()ofAppGLFWWindow( ... )
ofAppGLFWWindow(ofAppGLFWWindow &w)ofAppGLFWWindow( )
ofAppGLFWWindow()operator=( ... )
ofAppGLFWWindow & operator=(ofAppGLFWWindow &w)pollEvents( )
void pollEvents()resize_cb( ... )
void resize_cb(GLFWwindow *windowP_, int w, int h)scroll_cb( ... )
void scroll_cb(GLFWwindow *windowP_, double x, double y)setClipboardString( ... )
void setClipboardString(const string &text)setCurrent( ... )
ofAppGLFWWindow * setCurrent(GLFWwindow *windowP)setFullscreen( ... )
void setFullscreen(bool fullscreen)setOrientation( ... )
void setOrientation(ofOrientation orientation)setVerticalSync( ... )
void setVerticalSync(bool bSync)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)setWindowShouldClose( )
void setWindowShouldClose()setWindowTitle( ... )
void setWindowTitle(string title)setup( ... )
void setup(const ofGLWindowSettings &settings)setup( ... )
void setup(const ofGLFWWindowSettings &settings)showCursor( )
void showCursor()startRender( )
void startRender()swapBuffers( )
void swapBuffers()toggleFullscreen( )
void toggleFullscreen()update( )
void update()~ofAppGLFWWindow( )
~ofAppGLFWWindow()