From: Javier Sancho Date: Mon, 8 Oct 2012 19:24:41 +0000 (+0200) Subject: Texture primitive. X-Git-Url: https://git.jsancho.org/?p=gacela.git;a=commitdiff_plain;h=3346993d550ce875c99870f8a3c097cc1a772dd3 Texture primitive. --- diff --git a/src/video.scm b/src/video.scm index 87ba9e0..d19796e 100644 --- a/src/video.scm +++ b/src/video.scm @@ -607,6 +607,9 @@ (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))