<vertex-array-object> ( vertex-buffer program-instance format -- vertex-array )


Vocabulary
gpu.shaders.private

Inputs
vertex-buffera vertex buffer
program-instancea program-instance
formata vertex-format


Outputs
vertex-arraya vertex-array


Word description
Creates a new vertex array object.

Definition


:: <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