Handbook
Glossary
texture-wrap? ( object -- ? )
Vocabulary
gpu
.
textures
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
texture-wrap
class.
Definition
USING:
kernel
;
IN:
gpu.textures
:
texture-wrap?
( object -- ? )
dup
repeat-texcoord-mirrored?
[
drop
t
]
[
dup
repeat-texcoord?
[
drop
t
]
[
dup
clamp-texcoord-to-border?
[
drop
t
]
[
clamp-texcoord-to-edge?
]
if
]
if
]
if
;