From 3346993d550ce875c99870f8a3c097cc1a772dd3 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Mon, 8 Oct 2012 21:24:41 +0200 Subject: [PATCH] Texture primitive. --- src/video.scm | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.2