Handbook
Glossary
cube-map-face
Vocabulary
gpu
.
textures
Class description
A
cube-map-face
tuple references a single face of a
texture-cube-map
object for use with
allocate-texture
,
update-texture
, or
read-texture
.
•
The
texture
slot indicates the cube map texture being referenced.
•
The
axis
slot indicates which face to reference:
+X
,
+Y
,
+Z
,
-X
,
-Y
, or
-Z
.
Definition
IN:
gpu.textures
TUPLE:
cube-map-face
{
texture
texture-cube-map
read-only
initial:
T{
texture-cube-map
}
}
{
axis
cube-map-axis
read-only
initial:
-X
}
;
Methods
USING:
accessors
combinators
gpu.textures
gpu.textures.private
opengl.gl
;
M:
cube-map-face
texture-data-gl-target
axis>>
{
{
-X
[
GL_TEXTURE_CUBE_MAP_NEGATIVE_X
]
}
{
-Y
[
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
]
}
{
-Z
[
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
]
}
{
+X
[
GL_TEXTURE_CUBE_MAP_POSITIVE_X
]
}
{
+Y
[
GL_TEXTURE_CUBE_MAP_POSITIVE_Y
]
}
{
+Z
[
GL_TEXTURE_CUBE_MAP_POSITIVE_Z
]
}
}
case
;
inline
USING:
accessors
gpu.textures
gpu.textures.private
;
M:
cube-map-face
texture-object
texture>>
;
inline