Handbook
Glossary
set-texture-parameters ( texture: texture parameters: texture-parameters -- )
Vocabulary
gpu
.
textures
Inputs
texture
a
texture
parameters
a
texture-parameters
Outputs
None
Word description
Changes the
texture-parameters
of a
texture
.
See also
texture-parameters
Definition
USING:
accessors
combinators
gpu.textures.private
kernel
opengl.gl
typed
;
IN:
gpu.textures
TYPED:
set-texture-parameters
( texture: texture parameters: texture-parameters -- )
[
bind-texture
]
dip
{
[
wrap>>
set-texture-gl-wrap
]
[
[
GL_TEXTURE_MIN_FILTER
]
dip
[
min-filter>>
]
[
min-mipmap-filter>>
]
bi
gl-min-filter
glTexParameteri
]
[
[
GL_TEXTURE_MAG_FILTER
]
dip
mag-filter>>
gl-mag-filter
glTexParameteri
]
[
[
GL_TEXTURE_MIN_LOD
]
dip
min-lod>>
glTexParameteri
]
[
[
GL_TEXTURE_MAX_LOD
]
dip
max-lod>>
glTexParameteri
]
[
[
GL_TEXTURE_LOD_BIAS
]
dip
lod-bias>>
glTexParameteri
]
[
[
GL_TEXTURE_BASE_LEVEL
]
dip
base-level>>
glTexParameteri
]
[
[
GL_TEXTURE_MAX_LEVEL
]
dip
max-level>>
glTexParameteri
]
}
2cleave
;