Handbook
Glossary
on-configure ( sender event user-data -- result )
Vocabulary
gtk-samples
.
opengl
Inputs
sender
an
object
event
an
object
user-data
an
object
Outputs
result
an
object
Definition
USING:
gdk2.gl.ffi
gtk2.gl.ffi
kernel
opengl.gl
;
IN:
gtk-samples.opengl
::
on-configure
( sender event user-data -- result )
sender
gtk_widget_get_gl_context
:>
gl-context sender
gtk_widget_get_gl_window
:>
gl-drawable gl-drawable
gl-context
gdk_gl_drawable_gl_begin
dup
[
0 0 200 200
glViewport
gl-drawable
gdk_gl_drawable_gl_end
]
when
;