Handbook
Glossary
select-gl-context ( handle -- )
Factor handbook
»
UI framework
»
Developing UI backends
»
UI backend window management
Prev:
draw-world ( world -- )
Next:
flush-gl-context ( handle -- )
Vocabulary
ui
.
backend
Inputs
handle
an
object
Outputs
None
Definition
IN:
ui.backend
GENERIC:
select-gl-context
( handle -- )
Methods
USING:
accessors
alien.c-types
cocoa.messages
cocoa.runtime
ui.backend
ui.backend.cocoa
;
M:
window-handle
select-gl-context
view>>
{
id
{
id
SEL
}
}
"openGLContext"
send
{
void
{
id
SEL
}
}
"makeCurrentContext"
send
;
USING:
accessors
gdk2.gl.ffi
gtk2.gl.ffi
kernel
ui.backend
ui.backend.gtk2
;
M:
window-handle
select-gl-context
drawable>>
[
gtk_widget_get_gl_window
]
[
gtk_widget_get_gl_context
]
bi
gdk_gl_drawable_make_current
drop
;