Handbook
Glossary
flush-gl-context ( handle -- )
Factor handbook
»
UI framework
»
Developing UI backends
»
UI backend window management
Prev:
select-gl-context ( handle -- )
Next:
close-window ( gadget -- )
Vocabulary
ui
.
backend
Inputs
handle
a backend-specific handle
Outputs
None
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
alien.c-types
cocoa.messages
cocoa.runtime
ui.backend
ui.backend.cocoa
;
M:
window-handle
flush-gl-context
view>>
{
id
{
id
SEL
}
}
"openGLContext"
send
{
void
{
id
SEL
}
}
"flushBuffer"
send
;
USING:
accessors
gdk2.gl.ffi
gtk2.gl.ffi
ui.backend
ui.backend.gtk2
;
M:
window-handle
flush-gl-context
drawable>>
gtk_widget_get_gl_window
gdk_gl_drawable_swap_buffers
;