factor/library/ui/backend.factor

17 lines
367 B
Factor
Raw Normal View History

2006-03-18 02:23:57 -05:00
IN: gadgets
USING: kernel opengl ;
2006-03-18 02:23:57 -05:00
DEFER: draw-world ! defined in world.factor
: redraw-world ( world -- ) draw-world ;
2006-03-18 02:23:57 -05:00
2006-03-24 22:58:03 -05:00
DEFER: open-window* ( world title -- )
DEFER: select-gl-context ( handle -- )
DEFER: flush-gl-context ( handle -- )
: with-gl-context ( handle quot -- )
swap [ select-gl-context call ] keep
glFlush flush-gl-context gl-error ; inline