summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2016-01-01 16:38:56 -0500
committerDavid Thompson <dthompson2@worcester.edu>2016-01-01 17:42:38 -0500
commitbb2b65d81d898860635eb64a5a81d0307f4dce17 (patch)
tree71aac88604095db856a37a3147bda3a8d6d1603c /examples
parentd88675559e99c0a65000fad0eb136fe45cb1f479 (diff)
render: mesh: Add support for streaming vertex buffers.
* sly/render/mesh.scm (<vertex-buffer>)[length]: New field. (vertex-buffer-length): Now return the length in bytes. (vertex-buffer-element-length, make-streaming-vertex-buffer) (map-vertex-buffer!, unmap-vertex-buffer!): New procedures. (init-vertex-buffer-data!): Delete. (bytevector->vertex-buffer): Move body of 'init-vertex-buffer-data!' within. (make-mesh): Use 'vertex-buffer-element-length'.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions