diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-01-26 17:30:32 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-01-26 17:41:57 -0500 |
commit | fecdf0878b9af3941f9dbdff0bae684fac74c9c2 (patch) | |
tree | f0afea55c496e09006d520419ef2166fdfc836d5 /configure.ac | |
parent | 091769753d1faced6d22cca101b5bfe3b90e3938 (diff) |
render: mesh: Rewrite constructors and expose vertex buffers.
* sly/rener/mesh.scm (vertex-buffer-attribute-size): Reimplement.
(type-size): New procedure.
(with-vertex-buffer): Unbind buffer when done.
(init-vertex-buffer-data!): New procedure.
(make-vertex-buffer*): Remove.
(bytevector->vertex-buffer, vector->vertex-buffer): New procedures.
(make-vertex-buffer): Implement in terms of
'bytevector->vertex-buffer'.
(make-mesh): Change to accept pre-built vertex buffers.
(build-mesh, mesh-ref): New procedures.
(mesh-guadian): Destructure vertex buffer alist.
* sly/render/shape.scm (make-cube): Use 'build-mesh'.
* sly/render/sprite.scm (make-sprite): Likewise.
* sly/render/tile-map.scm (compile-tile-layer): Likewise.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions