Next: , Previous: , Up: Graphics   [Contents][Index]


2.4.2 Textures

Scheme Procedure: load-image file [#:min-filter nearest] [#:mag-filter nearest] [#:wrap-s repeat] [#:wrap-t repeat]

Load the image data from file and return a new texture object.

min-filter and mag-filter describe the method that should be used for minification and magnification when rendering, respectively. Possible values are nearest and linear.

wrap-s and wrap-t describe how to interpret texture coordinates that are greater than 1.0. Possible values are repeat, clamp, clamp-to-border, and clamp-to-edge.