Next: , Previous: Gtk GL Module, Up: Top

12 Gtk GL Extras

The following extra Gtk GL level functions are provided by Guile Gtk.

— Function: gtk-gl-area-make-current-force area

Make the given area current, throwing an error if this fails.

— macro: with-gl-area area body...
— macro: with-render-to-gl-area area body...

Evaluate the body forms with area made current. An error is thrown if area cannot be set.

with-gl-area just sets the area, with-render-to-gl-area in addition calls gtk-gl-area-swap-buffers after body, to display whatever body may have drawn to the back buffer.