flush-gl-context ( handle -- )
Factor documentation > Factor handbook > UI framework > Developing UI backends > UI backend window management
Prev:select-gl-context ( handle -- )
Next:close-window ( gadget -- )


Vocabulary
ui.backend

Inputs and outputs
handlea backend-specific handle


Word description
Ensures all GL rendering calls made to an OpenGL context finish rendering to the screen. This word is called automatically by the UI after drawing a world.

Definition
IN: ui.backend

GENERIC: flush-gl-context ( handle -- )


Methods
USING: accessors gdk.gl.ffi gtk.gl.ffi ui.backend ui.backend.gtk
;

M: window-handle flush-gl-context
window>> gtk_widget_get_gl_window
gdk_gl_drawable_swap_buffers ;