Maze doesn't need opengl.demo-support
parent
503aee30f7
commit
5cbbc3e182
|
@ -1,7 +1,7 @@
|
||||||
! From http://www.ffconsultancy.com/ocaml/maze/index.html
|
! From http://www.ffconsultancy.com/ocaml/maze/index.html
|
||||||
USING: sequences namespaces math math.vectors opengl opengl.gl
|
USING: sequences namespaces math math.vectors opengl opengl.gl
|
||||||
opengl.demo-support arrays kernel random ui ui.gadgets
|
arrays kernel random ui ui.gadgets ui.gadgets.canvas ui.render
|
||||||
ui.gadgets.canvas ui.render math.order math.geometry.rect ;
|
math.order math.geometry.rect ;
|
||||||
IN: maze
|
IN: maze
|
||||||
|
|
||||||
: line-width 8 ;
|
: line-width 8 ;
|
||||||
|
@ -28,7 +28,7 @@ SYMBOL: visited
|
||||||
: (draw-maze) ( cell -- )
|
: (draw-maze) ( cell -- )
|
||||||
dup vertex
|
dup vertex
|
||||||
glEnd
|
glEnd
|
||||||
GL_POINTS [ dup vertex ] do-state
|
GL_POINTS glBegin dup vertex glEnd
|
||||||
GL_LINE_STRIP glBegin
|
GL_LINE_STRIP glBegin
|
||||||
dup vertex
|
dup vertex
|
||||||
dup visit
|
dup visit
|
||||||
|
|
Loading…
Reference in New Issue