diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-01-24 15:59:52 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-01-26 17:41:57 -0500 |
commit | 091769753d1faced6d22cca101b5bfe3b90e3938 (patch) | |
tree | e15a213f760977cecc46a097edfd28983a39809e /doc/api | |
parent | c663963d2d0acdee50b6290d4ce94cb94d8d323a (diff) |
render: mesh: Generalize <mesh> type to support streaming data.
* sly/render/mesh.scm (<mesh) [attr-size, length]: Remove fields.
[usage]: Add field.
(vertex-buffer-attr-size): Delete.
(vertex-buffer-attribute-size): New procedure.
(vertex-attrib-pointer): Use it.
(vertex-buffer-length): Reimplement.
(vertex-buffer-target, vertex-buffer-usage-gl, index-buffer?,
attribute-type): New procedures.
(bind-vertex-buffer): Use it.
(with-vertex-buffer): Don't unbind buffer (one less context change).
(make-vertex-buffer*): New procedure.
(make-vertex-buffer): Use it.
(make-mesh): Add index buffer to mesh VBO list.
Diffstat (limited to 'doc/api')
0 files changed, 0 insertions, 0 deletions