summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* render: texture: Add null-texture.David Thompson2015-03-082-1/+4
| | | | | * sly/render/texture.scm (null-texture): New variable. * sly/render/context.scm (render-context-reset!): Reset to null-texture.
* render: mesh: Rewrite constructors and expose vertex buffers.David Thompson2015-01-264-116/+143
| | | | | | | | | | | | | | | | | * 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.
* render: mesh: Generalize <mesh> type to support streaming data.David Thompson2015-01-261-41/+74
| | | | | | | | | | | | | | | | * 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.
* render: mesh: Support streaming vertex buffers.David Thompson2015-01-261-3/+6
| | | | * sly/render/mesh.scm (make-vertex-buffer): Add 'stream?' argument.
* render: mesh: Add data field.David Thompson2015-01-261-7/+9
| | | | * sly/render/mesh.scm (<mesh>) [data]: New field.
* render: context: Reset state after rendering.David Thompson2015-01-261-1/+3
| | | | | | | | 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.
* render: tileset: Add tileset-invert-index.David Thompson2015-01-241-1/+11
| | | | * sly/render/tileset.scm (tileset-invert-index): New procedure.
* render: tileset: Add rows and columns fields.David Thompson2015-01-241-14/+20
| | | | | | | * 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.
* wrappers: gsl: Add cblas-sgemv wrapper.David Thompson2015-01-211-1/+6
|
* examples: Update tile map example to use more efficient rendering.David Thompson2015-01-191-40/+45
| | | | * examples/tilemap.scm: Update it.
* render: Add tile-map module.David Thompson2015-01-192-0/+130
| | | | | * sly/render/tile-map.scm: New file. * Makefile.am (SOURCES): Add it.
* render: texture: Export texture-parent.David Thompson2015-01-191-0/+1
| | | | * sly/render/texture.scm (texture-parent): Export it.
* utils: Add vlist-ref* and list->vlist*.David Thompson2015-01-192-2/+30
| | | | | * sly/utils.scm (vlist-ref*, list->vlist*): New procedures. * doc/api/utils.texi: Document them.
* render: tileset: Fix compilation warning.David Thompson2015-01-191-0/+1
| | | | * sly/render/tileset.scm: Import (ice-9 format).
* render: tileset: Use custom record type printer.David Thompson2015-01-191-0/+11
| | | | | | | * 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.
* render: tileset: Add texture field.David Thompson2015-01-191-8/+7
| | | | | | * sly/render/tileset.scm (tileset-texture): New procedure. (%make-tileset): New 'texture' argument. (make-tileset, load-tileset): Use new constructor.
* TODO: Add new item.David Thompson2015-01-191-0/+6
| | | | * TODO.org ("Bitmap font rendering from tileset"): New item.
* Update TODO list.David Thompson2015-01-191-3/+13
| | | | * TODO.org: Mark one sub-item as done. Add some new items.
* doc: Document window and game loop modules.David Thompson2015-01-191-0/+107
| | | | * doc/api/init.texi: Add docs!
* window: Fix outdated docstring.David Thompson2015-01-191-1/+1
| | | | * sly/window.scm (close-window): Remove mention of audio in docstring.
* doc: input: Relabel signals as "Scheme Signals".David Thompson2015-01-191-9/+9
| | | | * doc/api/input.texi: s/Signal/Scheme Signal/
* live-reload: Remove global variable.David Thompson2015-01-181-19/+19
| | | | | * sly/live-reload.scm (live-reload-interval): Delete. (live-reload): Add 'polling-interval' argument.
* utils: Remove unused procedures.David Thompson2015-01-181-12/+1
| | | | * sly/utils.scm (any-equal?, logand?): Delete.
* doc: Document utility modules.David Thompson2015-01-181-0/+81
| | | | * doc/api/utils.texi: Document the REPL, live-reload, and utils modules.
* render: tileset: Fix split-texture again.David Thompson2015-01-181-2/+2
| | | | | * sly/render/tileset.scm (split-texture): Swap rows and columns calculation.
* render: tileset: Fix column calculation.David Thompson2015-01-181-1/+1
| | | | | * sly/render/tileset.scm (split-texture): Use texture height in columns calculation, not width.
* doc: Add example input module import snippets.David Thompson2015-01-181-0/+12
| | | | * doc/api/input.texi: Add import snippets.
* doc: Document input modules.David Thompson2015-01-181-0/+171
| | | | | * doc/api/input.texi: Add docs for keyboard, mouse, and joystick input modules.
* framebuffer: Fix syntax problem in 'with-framebuffer'.David Thompson2015-01-121-2/+2
| | | | | * sly/render/framebuffer.scm (with-framebuffer): Bind framebuffer to a syntactic variable that doesn't clash with the 'version-3-0' macro.
* mines: Disable clicking on tiles when you lose.Christopher Allan Webber2015-01-102-1/+3
| | | | | | | | Also add myself to AUTHORS! ;) * AUTHORS: Add me. * examples/mines/mines.scm (board-reveal): Don't reveal tiles in 'game over' state.
* Fix config.scm generation.David Thompson2014-12-261-1/+0
| | | | * configure.ac: Do not generate sly/config.scm. Let the Makefile do it.
* math: rect: Update docstrings.David Thompson2014-12-131-8/+7
| | | | | * sly/math/rect.scm (rect-position, rect-inflate, rect-union, rect-clip, rect-contains?): Update docstrings.
* math: transform: Update docstrings.David Thompson2014-12-131-4/+4
| | | | * sly/math/transform (transform+, transform*): Update docstrings.
* math: Update docstring for make-lerp.David Thompson2014-12-131-7/+7
| | | | * sly/math.scm (make-lerp): Update docstring.
* agenda: Rename procedures.David Thompson2014-12-133-10/+10
| | | | | | | * 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.
* docs: Add half-written manual.David Thompson2014-12-139-121/+1183
| | | | | | | | | | | | * 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: Distribute logos in release tarballs.David Thompson2014-12-111-0/+5
| | | | * data/Makefile.am (logosdir, dist_logos_DATA): New variables.
* data: Add SVG logo.David Thompson2014-12-113-1/+472
| | | | | | | | | 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: Begin rewriting manual.David Thompson2014-12-073-39/+340
| | | | | | | * doc/Makefile.am (guile_TEXINFOS): Delete. (sly_TEXINFOS): New variable. * doc/sly.texi: Rewrite. * doc/api/signals.texi: New file.
* signal: Require signal values in signal-let.David Thompson2014-12-071-1/+1
| | | | | * sly/signal.scm (signal-let): Use signal-ref instead of signal-ref-maybe.
* Fix 'make distcheck'.David Thompson2014-12-072-2/+3
| | | | | | * 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: Fix Makefile.David Thompson2014-12-071-6/+3
| | | | | | * examples/Makefile.am (examples_DATA, imagedir, image_DATA): Delete. (nobase_dist_examples_DATA): New variable that preserves directory structure when 'make install' is run.
* signal: Improve docstrings and parameter names.David Thompson2014-12-071-32/+33
| | | | * sly/signal.scm: Tweak docstrings and parameter names.
* signal: Do not export signal-proc.David Thompson2014-12-071-1/+0
| | | | * sly/signal.scm: Remove signal-proc for export list.
* input: mouse: Fix typo in comment.David Thompson2014-12-071-1/+1
| | | | * sly/input/mouse.scm: Fix typo.
* examples: Recolor some sprites.David Thompson2014-12-062-0/+0
| | | | | * examples/mines/images/exploded.png: Recolor. * examples/mines/images/flag.png: Likewise.
* render: sprite: Remove make-animated-sprite.David Thompson2014-12-061-23/+1
| | | | * sly/render/sprite.scm (make-animated-sprite): Delete.
* Update TODO list.David Thompson2014-12-061-3/+4
|
* examples: Update 2048.David Thompson2014-12-062-10/+5
| | | | | | * examples/2048/2048: Delete. * examples/2048/2048.scm: New file. * examples/Makefile.am (examples_DATA): Add new file. Remove old one.
* examples: Add minesweeper clone.David Thompson2014-12-0616-2/+417
| | | | | | | * examples/mines/mines.scm: New file. * examples/mines/images/*: New files. * examples/Makefile.am (examples_DATA): Add 'mines.scm'. (image_DATA): Add images.