factor/library/ui/ui.factor

20 lines
511 B
Factor
Raw Normal View History

2005-05-03 19:10:20 -04:00
! Copyright (C) 2005 Slava Pestov.
! See http://factor.sf.net/license.txt for BSD license.
IN: gadgets
USING: kernel namespaces sdl sequences ;
IN: shells
: ui ( -- )
#! Start the Factor graphics subsystem with the given screen
#! dimensions.
?init-world
world get shape-dim 2unseq 0 SDL_RESIZABLE [
2005-05-03 19:10:20 -04:00
0 x set 0 y set [
2005-06-27 00:40:51 -04:00
"Factor " version append dup SDL_WM_SetCaption
2005-06-27 03:47:22 -04:00
ttf-init
start-world
run-world
2005-05-03 19:10:20 -04:00
] with-screen
] with-scope ;