Handbook
Glossary
<vertex-array-object> ( vertex-buffer program-instance format -- vertex-array )
Vocabulary
gpu
.
shaders
.
private
Inputs
vertex-buffer
a vertex buffer
program-instance
a
program-instance
format
a
vertex-format
Outputs
vertex-array
a
vertex-array
Word description
Creates a new vertex array object.
Definition
USING:
arrays
gpu.shaders
kernel
opengl
opengl.gl
ui.gadgets.worlds
;
IN:
gpu.shaders.private
::
<vertex-array-object>
( vertex-buffer program-instance format -- vertex-array )
gen-vertex-array
:>
handle handle
glBindVertexArray
program-instance vertex-buffer
?>buffer-ptr
format
bind-vertex-format
handle program-instance vertex-buffer
?>buffer
1array
vertex-array-object
boa
window-resource
;
inline