summaryrefslogtreecommitdiff
path: root/chickadee/graphics/texture.scm
diff options
context:
space:
mode:
Diffstat (limited to 'chickadee/graphics/texture.scm')
-rw-r--r--chickadee/graphics/texture.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/chickadee/graphics/texture.scm b/chickadee/graphics/texture.scm
index dd2a6d8..b9efd17 100644
--- a/chickadee/graphics/texture.scm
+++ b/chickadee/graphics/texture.scm
@@ -167,12 +167,13 @@ lower-left corner of the image, set FLIP? to #t. The generated
texture uses MIN-FILTER for downscaling and MAG-FILTER for upscaling.
WRAP-S and WRAP-T are symbols that control how texture access is
handled for texture coordinates outside the [0, 1] range. Allowed
-symbols are: repeat (the default), clamp, clamp-to-border,
-clamp-to-edge. FORMAT specifies the pixel format. Currently only
-32-bit RGBA format is supported."
+symbols are: repeat (the default), mirrored-repeat, clamp,
+clamp-to-border, clamp-to-edge. FORMAT specifies the pixel format.
+Currently only 32-bit RGBA format is supported."
(define (gl-wrap mode)
(match mode
('repeat (texture-wrap-mode repeat))
+ ('mirrored-repeat (version-1-4 mirrored-repeat))
('clamp (texture-wrap-mode clamp))
('clamp-to-border (texture-wrap-mode clamp-to-border-sgis))
('clamp-to-edge (texture-wrap-mode clamp-to-edge-sgis))))