1 USING: accessors kernel ui ui.backend ui.gadgets
2 ui.gadgets.worlds ui.pixel-formats ;
3 IN: ui.gadgets.worlds.null
5 TUPLE: null-world < world ;
6 M: null-world begin-world drop ;
7 M: null-world end-world drop ;
8 M: null-world draw-world* drop ;
9 M: null-world resize-world drop ;
11 : null-window ( title -- world )
14 null-world >>world-class
20 } >>pixel-format-attributes
21 { 512 512 } >>pref-dim
24 : into-window ( world quot -- world )
25 [ dup ] dip with-gl-context ; inline