Handbook
Glossary
render-vertex-indexes-instanced ( primitive-mode vertex-indexes instances -- )
Vocabulary
gpu
.
render
.
private
Inputs
primitive-mode
an
object
vertex-indexes
an
object
instances
an
object
Outputs
None
Definition
IN:
gpu.render.private
GENERIC#:
render-vertex-indexes-instanced
1
( primitive-mode vertex-indexes instances -- )
Methods
USING:
accessors
gpu.buffers
gpu.render
gpu.render.private
kernel
opengl.gl
;
M:
index-elements
render-vertex-indexes-instanced
[
gl-primitive-mode
]
[
[
count>>
]
[
index-type>>
gl-index-type
]
[
ptr>>
]
tri
]
[
]
tri*
swap
index-buffer
[
swap
glDrawElementsInstanced
]
with-gpu-data-ptr
;
USING:
accessors
gpu.render
gpu.render.private
kernel
opengl.gl
;
M:
index-range
render-vertex-indexes-instanced
[
gl-primitive-mode
]
[
[
start>>
]
[
count>>
]
bi
]
[
]
tri*
glDrawArraysInstanced
;
USING:
alien
gpu.render.private
kernel
opengl.gl
sequences
specialized-arrays
;
M:
specialized-array
render-vertex-indexes-instanced
GL_ELEMENT_ARRAY_BUFFER
0
glBindBuffer
[
gl-primitive-mode
]
[
[
length
]
[
gl-array-element-type
]
[
>c-ptr
]
tri
]
[
]
tri*
glDrawElementsInstanced
;