diff options
author | David Thompson <dthompson2@worcester.edu> | 2016-01-01 16:38:56 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2016-01-01 17:42:38 -0500 |
commit | bb2b65d81d898860635eb64a5a81d0307f4dce17 (patch) | |
tree | 71aac88604095db856a37a3147bda3a8d6d1603c /examples/images/ballBlue.png | |
parent | d88675559e99c0a65000fad0eb136fe45cb1f479 (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/images/ballBlue.png')
0 files changed, 0 insertions, 0 deletions