Fix tetris rendering
parent
fb8ee9fb11
commit
3acd00b403
|
@ -35,7 +35,7 @@ IN: tetris.gl
|
|||
: scale-board ( width height board -- )
|
||||
[ width>> ] [ height>> ] bi swapd [ / ] dup 2bi* 1 glScalef ;
|
||||
|
||||
: (draw-tetris) ( width height tetris -- )
|
||||
: draw-tetris ( width height tetris -- )
|
||||
#! width and height are in pixels
|
||||
GL_MODELVIEW [
|
||||
{
|
||||
|
@ -44,7 +44,4 @@ IN: tetris.gl
|
|||
[ next-piece draw-next-piece ]
|
||||
[ current-piece draw-piece ]
|
||||
} cleave
|
||||
] do-matrix ;
|
||||
|
||||
: draw-tetris ( width height tetris -- )
|
||||
origin get [ (draw-tetris) ] with-translation ;
|
||||
] do-matrix ;
|
Loading…
Reference in New Issue