(gl-mesh numf)
(gl-mesh numf attribs)
Builds a fixed size mesh with given face count & attribs (a set of #{:fnorm :vnorm :uv :col}). All attributes (incl. vertices) are stored directly in typed array buffers.
Builds a fixed size mesh with given face count & attribs (a set of #{:fnorm :vnorm :uv :col}). All attributes (incl. vertices) are stored directly in typed array buffers.
(indexed-gl-mesh numf)
(indexed-gl-mesh numf attribs)
Builds a fixed size, indexed mesh with given face count & optional attribs (a set of #{:fnorm :vnorm :uv :col}). All attributes (incl. vertices) are stored directly in typed array buffers. Internally builds index of unique vertices (position + attribs) and re-uses indices where possible.
Builds a fixed size, indexed mesh with given face count & optional attribs (a set of #{:fnorm :vnorm :uv :col}). All attributes (incl. vertices) are stored directly in typed array buffers. Internally builds index of unique vertices (position + attribs) and re-uses indices where possible.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close