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
;