Handbook
Glossary
vertex-buffer<< ( value object -- )
Vocabulary
accessors
Inputs
value
an
object
object
an
object
Outputs
None
Definition
IN:
accessors
GENERIC:
vertex-buffer<<
( value object -- )
Methods
USING:
accessors
gpu.buffers
kernel
papier.render
slots
slots.private
;
M:
papier-renderer
vertex-buffer<<
[
dup
buffer?
[
\
buffer
bad-slot-value
]
unless
]
dip
2
set-slot
;
inline
USING:
accessors
model-viewer
slots.private
;
M:
vbo
vertex-buffer<<
2
set-slot
;
inline