render: buffer: Add divisor field to typed buffers.
authorDavid Thompson <dthompson2@worcester.edu>
Thu, 25 Oct 2018 12:44:48 +0000 (08:44 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Thu, 25 Oct 2018 12:44:48 +0000 (08:44 -0400)
commit047a5f585c2fa641e139487f2790b3e09e3d4357
tree269e12f529150e5e2f12c1f1100284f7f17cacfe
parent49157a196366ec55cfc94c3e854db99e2d7c3d63
render: buffer: Add divisor field to typed buffers.

* chickadee/render/buffer.scm (<typed-buffer>)[divisor]: New field.
(typed-buffer-divisor): New procedure.
(make-typed-buffer, make-streaming-typed-buffer): Add #:divisor argument.
(apply-typed-buffer): Setup vertex attribute divisor if there is one.
chickadee/render/buffer.scm