| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* sly/signal.scm (signal-timer): New procedure.
* doc/api/signals.texi: Document it.
|
|
|
|
|
| |
* sly/render/mesh.scm (null-mesh): New variable.
* sly/render/context.scm (render-context-reset!): Reset to null-mesh.
|
|
|
|
|
| |
* sly/render/texture.scm (null-texture): New variable.
* sly/render/context.scm (render-context-reset!): Reset to null-texture.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* sly/render/mesh.scm (make-vertex-buffer): Add 'stream?' argument.
|
|
|
|
| |
* sly/render/mesh.scm (<mesh>) [data]: New field.
|
|
|
|
|
|
|
|
| |
Fixes state pollution issues where GL objects remained bound after
rendering.
* sly/render/context.scm (with-render-context): Call
'render-context-reset!' after evaluating the body.
|
|
|
|
| |
* sly/render/tileset.scm (tileset-invert-index): New procedure.
|
|
|
|
|
|
|
| |
* sly/render/tileset.scm (<tileset>) [rows, columns]: New fields.
(tileset-rows, tileset-columns): New procedures.
(split-texture): Return rows and columns.
(make-tileset, load-tileset): Use new constructor.
|
| |
|
|
|
|
| |
* examples/tilemap.scm: Update it.
|
|
|
|
|
| |
* sly/render/tile-map.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
| |
* sly/render/texture.scm (texture-parent): Export it.
|
|
|
|
|
| |
* sly/utils.scm (vlist-ref*, list->vlist*): New procedures.
* doc/api/utils.texi: Document them.
|
|
|
|
| |
* sly/render/tileset.scm: Import (ice-9 format).
|
|
|
|
|
|
|
| |
* sly/render/tileset.scm: Use a much more brief, readable record type
printer that does not print out all of the tiles, and thus repeating
the parent texture n times, which is problematic for large values of
n.
|
|
|
|
|
|
| |
* sly/render/tileset.scm (tileset-texture): New procedure.
(%make-tileset): New 'texture' argument.
(make-tileset, load-tileset): Use new constructor.
|
|
|
|
| |
* TODO.org ("Bitmap font rendering from tileset"): New item.
|
|
|
|
| |
* TODO.org: Mark one sub-item as done. Add some new items.
|
|
|
|
| |
* doc/api/init.texi: Add docs!
|
|
|
|
| |
* sly/window.scm (close-window): Remove mention of audio in docstring.
|
|
|
|
| |
* doc/api/input.texi: s/Signal/Scheme Signal/
|
|
|
|
|
| |
* sly/live-reload.scm (live-reload-interval): Delete.
(live-reload): Add 'polling-interval' argument.
|
|
|
|
| |
* sly/utils.scm (any-equal?, logand?): Delete.
|
|
|
|
| |
* doc/api/utils.texi: Document the REPL, live-reload, and utils modules.
|
|
|
|
|
| |
* sly/render/tileset.scm (split-texture): Swap rows and columns
calculation.
|
|
|
|
|
| |
* sly/render/tileset.scm (split-texture): Use texture height in columns
calculation, not width.
|
|
|
|
| |
* doc/api/input.texi: Add import snippets.
|
|
|
|
|
| |
* doc/api/input.texi: Add docs for keyboard, mouse, and joystick input
modules.
|
|
|
|
|
| |
* sly/render/framebuffer.scm (with-framebuffer): Bind framebuffer to a
syntactic variable that doesn't clash with the 'version-3-0' macro.
|
|
|
|
|
|
|
|
| |
Also add myself to AUTHORS! ;)
* AUTHORS: Add me.
* examples/mines/mines.scm (board-reveal): Don't reveal tiles in 'game
over' state.
|
|
|
|
| |
* configure.ac: Do not generate sly/config.scm. Let the Makefile do it.
|
|
|
|
|
| |
* sly/math/rect.scm (rect-position, rect-inflate, rect-union, rect-clip,
rect-contains?): Update docstrings.
|
|
|
|
| |
* sly/math/transform (transform+, transform*): Update docstrings.
|
|
|
|
| |
* sly/math.scm (make-lerp): Update docstring.
|
|
|
|
|
|
|
| |
* sly/agenda.scm (tick-agenda!, clear-agenda!): Rename.
(agenda-tick!, agenda-clear!): New procedures.
* sly/game.scm (start-game-loop): Use agenda-tick!.
* sly/repl.scm (start-sly-repl): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/game.texi: Delete.
* doc/api/init.texi: New file.
* doc/api/input.texi: Likewise.
* doc/api/math.texi: Likewise.
* doc/api/rendering.texi: Likewise.
* doc/api/time.texi: Likewise.
* doc/api/utils.texi: Likewise.
* doc/sly.texi: Add API reference.
* doc/Makefile.am (sly_TEXINFOS): Add new files.
|
|
|
|
| |
* data/Makefile.am (logosdir, dist_logos_DATA): New variables.
|
|
|
|
|
|
|
|
|
| |
Huge thanks to Jana Ochse <http://www.2d-retroperspectives.org> for
creating this logo!
* AUTHORS: Remove Chris Webber.
* data/AUTHORS: New file, which includes Chris Webber.
* data/logo.svg: New file.
|
|
|
|
|
|
|
| |
* doc/Makefile.am (guile_TEXINFOS): Delete.
(sly_TEXINFOS): New variable.
* doc/sly.texi: Rewrite.
* doc/api/signals.texi: New file.
|
|
|
|
|
| |
* sly/signal.scm (signal-let): Use signal-ref instead of
signal-ref-maybe.
|
|
|
|
|
|
| |
* configure.ac: Add 'sly/config.scm' as a config file.
* data/Makefile.am (fonts_DATA, shaders_DATA): Delete.
(dist_fonts_DATA, dist_shaders_DATA): New variables.
|
|
|
|
|
|
| |
* examples/Makefile.am (examples_DATA, imagedir, image_DATA): Delete.
(nobase_dist_examples_DATA): New variable that preserves directory
structure when 'make install' is run.
|
|
|
|
| |
* sly/signal.scm: Tweak docstrings and parameter names.
|
|
|
|
| |
* sly/signal.scm: Remove signal-proc for export list.
|
|
|
|
| |
* sly/input/mouse.scm: Fix typo.
|
|
|
|
|
| |
* examples/mines/images/exploded.png: Recolor.
* examples/mines/images/flag.png: Likewise.
|
|
|
|
| |
* sly/render/sprite.scm (make-animated-sprite): Delete.
|
| |
|