Handbook
Glossary
pack-attributes ( source-indices sources -- attributes )
Vocabulary
game
.
models
.
collada
.
private
Inputs
source-indices
a
sequence
sources
a
sequence
Outputs
attributes
a
sequence
Word description
Packs the attributes for a single vertex into a sequence from a set of source data streams.
Definition
USING:
accessors
kernel
make
sequences
sequences.deep
;
IN:
game.models.collada.private
:
pack-attributes
( source-indices sources -- attributes )
[
[
[
[
data>>
]
[
offset>>
]
bi
rot
=
[
nth
]
[
2drop
f
]
if
]
2with
map
sift
flatten
,
]
curry
each-index
]
V{
}
make
flatten
;