Handbook
Glossary
program-instance
Vocabulary
gpu
.
shaders
Class description
A
program-instance
is a shader
program
that has been compiled and linked for a graphics context using
<program-instance>
.
Definition
USING:
gpu
ui.gadgets.worlds
;
IN:
gpu.shaders
TUPLE:
program-instance
<
gpu-object
{
program
program
initial:
T{
program
}
}
{
world
world
initial:
T{
world
}
}
;
Methods
USING:
accessors
destructors
gpu.shaders
gpu.shaders.private
kernel
opengl.gl
;
M:
program-instance
dispose
[
dup
valid-handle?
[
glDeleteProgram
]
[
drop
]
if
f
]
change-handle
[
world>>
]
[
program>>
instances>>
]
[
]
tri
?delete-at
reset-memos
;