Handbook Glossary
factorcode.org
<texture> ( image loc -- texture )


Vocabulary
opengl.textures

Inputs
imagean object
locan object


Outputs
texturean object


Definition
USING: accessors images.tessellation kernel math
opengl.textures.private sequences ;

IN: opengl.textures

: <texture> ( image loc -- texture )
over dim>> max-texture-size [ <= ] 2all?
[ <single-texture> ]
[ [ max-texture-size tesselate ] dip <multi-texture> ] if ;