! From http://www.ffconsultancy.com/ocaml/maze/index.html
USING: sequences namespaces math math.vectors opengl opengl.gl
-opengl.demo-support arrays kernel random ui ui.gadgets
-ui.gadgets.canvas ui.render math.order math.geometry.rect ;
+arrays kernel random ui ui.gadgets ui.gadgets.canvas ui.render
+math.order math.geometry.rect ;
IN: maze
: line-width 8 ;
: (draw-maze) ( cell -- )
dup vertex
glEnd
- GL_POINTS [ dup vertex ] do-state
+ GL_POINTS glBegin dup vertex glEnd
GL_LINE_STRIP glBegin
dup vertex
dup visit