]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix tetris rendering
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 10 Mar 2009 21:59:48 +0000 (16:59 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 10 Mar 2009 21:59:48 +0000 (16:59 -0500)
extra/tetris/gl/gl.factor

index 70300779b58dfe34776f0af02a7c24951a814745..f8c901ff562a4bd34f60de5d6cb437d5c19dcd79 100644 (file)
@@ -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 ;
\ No newline at end of file