| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* chickadee/render/buffer.scm: s/typed-buffer/buffer-view/
* chickadee/render/shapes.scm: Same.
* chickadee/render/sprite.scm: Same.
* doc/api.texi: Same.
|
|
|
|
| |
* chickadee/render/buffer.scm (map-buffer!): Add optional 'mode' argument.
|
|
|
|
|
| |
* chickadee/render/buffer.scm (map-buffer!): Compare symbols to
symbols for checking stream usage. -__-
|
|
|
|
|
| |
* chickadee/render/buffer (map-buffer!): Do nothing if buffer is
already mapped to avoid throwing an error.
|
|
|
|
| |
* chickadee/render/buffer.scm (buffer-mapped?): New procedure.
|
| |
|
|
|
|
|
| |
* chickadee/render/buffer.scm (component-type-size,
typed-buffer-type-gl): Add int and double cases.
|
|
|
|
| |
* chickadee/render/buffer.scm (render-vertices/instanced): New procedure.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This one was a doozy. Took me days to figure out why something wasn't
rendering properly and this was the culprit! The last argument, the
"pointer" argument, to glVertexAttribPointer is supposed to point to
the byte offset to start reading data from the VBO. I thought this
meant that I could pass a pointer to an integer that contained the
offset. WRONG! The pointer value itself must encode that offset.
You can see in the diff that I knew this code didn't work when the
offset was 0, but somehow a null pointer worked and I just made that
case work while leaving every other offset broken. The more I know!
* chickadee/render/buffer.scm (apply-typed-buffer): Pass a pointer
whose address is the byte offset of the buffer, rather than a
pointer whose dereferenced value is an integer representing the byte
offset.
|
|
|
|
|
| |
* chickadee/render/buffer.scm (render-vertices): Use the index buffer
type rather than assuming it is always unsigned-int.
|
|
|
|
|
| |
* chickadee/render/buffer.scm (make-buffer): Remove unnecessary call
to glBufferSubData and just use glBufferData to do it all.
|
|
|
|
|
|
| |
* chickadee/render/buffer.scm (num-elements): New procedure.
(make-typed-buffer): Default 'length' to the correct value in
elements, not bytes, when a custom length is not specified.
|
|
|
|
|
| |
* chickdaee/render/buffer.scm (map-buffer!): Orphan buffer data only
when the buffer usage is 'stream'.
|
|
|