]> git.jsancho.org Git - gacela.git/blobdiff - src/video.scm
Texture primitive.
[gacela.git] / src / video.scm
index 87ba9e0e43e78a42e9cb07784e7bd3f9560806fd..d19796e02371ffbc6563ee2902da17903f6868a1 100644 (file)
 (define-primitive (rectangle width height #:key texture color texture-coord)
   (draw-rectangle width height #:texture texture #:color color #:texture-coord texture-coord))
 
+(define-primitive (texture texture #:key (zoom 1) (sprite '((0 0) (1 1))))
+  (draw-texture texture #:zoom zoom #:sprite sprite))
+
 
 (module-map (lambda (sym var)
              (if (not (eq? sym '%module-public-interface))