| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This commit is massive and crazy and I'm not going to do the usual GNU
ChangeLog thing because it's just too much. Let's just be happy that
the port is completed!
|
| |
|
|
|
|
|
|
|
|
| |
* examples/shapes.scm: New file.
* examples/images/country-sky.png: New file.
* examples/images/country-trees.png: New file.
* examples/Makefile.am (nobase_dist_examples_DATA): Add them.
* examples/images/AUTHORS: Credit ansimuz.
|
|
|
|
|
| |
* examples/framebuffer.scm: New file.
* examples/Makefile.am (nobase_dist_examples_DATA): Add it.
|
|
|
|
|
|
|
|
|
|
|
| |
Warning: This is a huge commit.
I completely gutted the old scene graph and replaced it with a somewhat
monadic rendering combinator module instead. The interface remains
purely functional, but replaces the <model> data type with procedures in
the rendering monad instead. This opens the door for
rendering *anything*, not just meshes. Now I can implement particle
systems and other non-static things.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The implementation is a bit cleaner, and it's a stepping stone towards
render combinators.
* sly/render/context.scm: Delete.
* sly/render.scm: New file.
* Makefile.am (SOURCES): Add it. Remove context.scm.
* sly/game.scm (run-game-loop): Use new <graphics> type.
* sly/render/model.scm (draw-model): Likewise.
* sly/render/scene.scm (draw-scene): Likewise.
* examples/2048/2048.scm: Remove (sly render context) import.
|
|
|
|
|
| |
* examples/life.scm: New file.
* examples/Makefile.am (nobase_dist_examples_DATA): Add it.
|
|
|
|
|
|
|
|
|
| |
* sly.scm: New file.
* Makefile.am (SOURCES): Add it.
* sandbox.in: Use new module.
* examples/common.scm: Likewise.
* examples/font.scm: Likewise.
* README ("Example"): Update example.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/api/init.texi: s/start-game-loop/run-game-loop/
* examples/2048/2048.scm: Likewise.
* examples/animation.scm: Likewise.
* examples/font.scm: Likewise.
* examples/joystick.scm: Likewise.
* examples/mines/mines.scm: Likewise.
* examples/simple.scm: Likewise.
* examples/tilemap.scm: Likewise.
* sandbox.in: Likewise.
* sly/game.scm: Likewise.
|
| |
|
| |
|
|
|
|
|
| |
* examples/2048/2048.scm: Use null-model
* examples/mines/mines.scm: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/render/model.scm (paint, blend, group, group*, move, place): Renamed.
(model-paint, model-blend, model-group, list->model, model-move,
model-place): New procedures.
* README.org (Example): s/move/model-move/
* examples/2048/2048.scm: Update example.
* examples/mines/mines.scm: Likewise.
* examples/animation.scm: Likewise.
* examples/font.scm: Likewise.
* examples/joystick.scm: Likewise.
* examples/simple.scm: Likewise.
* examples/tilemap.scm: Likewise.
|
|
|
|
| |
* examples/mines/mines.scm: Miscellaneous clean up.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/render/model.scm (<model>): Add 'transform' and 'children' fields.
(model-transform, model-children): New accessors.
(make-model): Add 'transform' and 'children' keyword arguments.
(set-transform-identity!): New procedure.
(draw-model): Recursively draw model and all children.
(model-paint, model-blend): Renamed.
(paint, blend, group, group*, move, place): New procedures.
* sly/render/group.scm: Delete.
* Makefile.am (SOURCES): Remove it.
* examples/2048/2048.scm: Update example.
* examples/animation.scm: Likewise.
* examples/font.scm: Likewise.
* examples/joystick.scm: Likewise.
* examples/mines/mines.scm: Likewise.
* examples/simple.scm: Likewise.
* examples/tilemap.scm: Likewise.
* README.org (Example): Update sample code.
|
|
|
|
| |
* examples/tilemap.scm: Update it.
|
|
|
|
|
|
|
|
| |
Also add myself to AUTHORS! ;)
* AUTHORS: Add me.
* examples/mines/mines.scm (board-reveal): Don't reveal tiles in 'game
over' state.
|
|
|
|
|
|
| |
* examples/Makefile.am (examples_DATA, imagedir, image_DATA): Delete.
(nobase_dist_examples_DATA): New variable that preserves directory
structure when 'make install' is run.
|
|
|
|
|
| |
* examples/mines/images/exploded.png: Recolor.
* examples/mines/images/flag.png: Likewise.
|
|
|
|
|
|
| |
* examples/2048/2048: Delete.
* examples/2048/2048.scm: New file.
* examples/Makefile.am (examples_DATA): Add new file. Remove old one.
|
|
|
|
|
|
|
| |
* examples/mines/mines.scm: New file.
* examples/mines/images/*: New files.
* examples/Makefile.am (examples_DATA): Add 'mines.scm'.
(image_DATA): Add images.
|
|
|
|
|
|
| |
* examples/Makefile.am (examples_DATA): Add missing examples. Remove
old ones.
(image_DATA): Add 2048's image asset.
|
|
|
|
|
|
| |
It's not a real particle system anyway.
* examples/particle.scm: Delete.
|
|
|
|
| |
* examples/tilemap.scm: Update.
|
|
|
|
|
|
| |
Every example is a scene graph example!
* examples/scene-graph.scm: Delete.
|
|
|
|
|
|
| |
Made redundant by animation example.
* examples/transition.scm: Delete.
|
| |
|
|
|
|
| |
* examples/font.scm: Update.
|
|
|
|
|
|
| |
Coroutines are now more of an implementation detail.
* examples/coroutine.scm: Delete.
|
|
|
|
|
|
|
| |
* examples/2048/2048: Update.
* examples/animation.scm: Likewise.
* examples/common.scm: Likewise.
* examples/simple.scm: Likewise.
|
|
|
|
| |
* examples/2048/2048: Use new group/model procedures.
|
|
|
|
| |
* examples/2048/2048: Update to use new Sly API.
|
|
|
|
|
|
|
|
| |
* sly/font.scm: Delete.
* sly/render/font.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* examples/font.scm: Use (sly render font).
* examples/joystick.scm: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/color.scm: Delete.
* sly/render/color.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* sly/font.scm: Use (sly render color) module.
* sly/render/camera.scm: Likewise.
* sly/render/mesh.scm: Likewise.
* sly/render/shader.scm: Likewise.
* sly/render/sprite.scm: Likewise.
* sly/render/texture.scm: Likewise.
* sly/render/vertex-array.scm: Likewise.
* sly/transition.scm: Likewise.
* examples/font.scm: Likewise.
* examples/simple.scm: Likewise.
* examples/tilemap.scm: Likewise.
* examples/transition.scm: Likewise.
|
|
|
|
|
|
|
| |
* sly/joystick.scm: Delete.
* sly/input/joystick.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* examples/joystick.scm: Use (sly input joystick) module.
|
|
|
|
|
|
|
| |
* sly/mouse.scm: Delete.
* sly/input/mouse.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* examples/font.scm: Use (sly input mouse).
|
|
|
|
|
|
|
|
| |
* sly/keyboard.scm: Delete.
* sly/input/keyboard.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old file.
* examples/common.scm: Use (sly input keyboard).
* examples/tilemap.scm: Likewise.
|
|
|
|
|
|
|
|
| |
* sly/rect.scm: Delete.
* sly/math/rect.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* sly/render/camera.scm: Use (sly math rect) module.
* examples/simple.scm: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/transform.scm: Delete.
* sly/render/transform.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* sly/render/camera.scm: Use (sly math transform).
* sly/render/mesh.scm: Likewise.
* sly/render/renderer.scm: Likewise.
* sly/render/scene.scm: Likewise.
* sly/render/shader.scm: Likewise.
* sly/window.scm: Likewise.
* examples/simple.scm: Likewise.
|
|
|
|
|
|
|
|
| |
* sly/scene.scm: Delete.
* sly/render/scene.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* examples/simple.scm: Use (sly render scene).
* examples/tilemap.scm: Likewise.
|
|
|
|
|
|
|
|
| |
* sly/tileset.scm: Delete.
* sly/render/tileset.scm: New file.
* Makefile.am (SOURCES): Add new file. Delete old one.
* examples/animation.scm: Use (sly render tileset).
* examples/tileset.scm: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/sprite.scm: Delete.
* sly/render/sprite.scm: New file.
* Makefile.am (SOURCES): Add new file and delete old one.
* sly/font.scm: Use (sly render sprite).
* examples/animation.scm: Likewise.
* examples/common.scm: Likewise.
* examples/coroutine.scm: Likewise.
* examples/joystick.scm: Likewise.
* examples/particles.scm: Likewise.
* examples/simple.scm: Likewise.
* examples/tilemap.scm: Likewise.
* examples/transition.scm: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/texture.scm: Delete.
* sly/render/texture.scm: New file.
* Makefile.am (SOURCES): Add it.
* sly/animation.scm: Use (sly render texture).
* sly/font.scm: Likewise.
* sly/mesh.scm: Likewise.
* sly/render/context.scm: Likewise.
* sly/render/framebuffer.scm: Likewise.
* sly/render/renderer.scm: Likewise.
* sly/shape.scm: Likewise.
* sly/sprite.scm: Likewise.
* sly/tileset.scm: Likewise.
* examples/coroutine.scm: Likewise.
* examples/joystick.scm: Likewise.
* examples/particles.scm: Likewise.
* examples/tilemap.scm: Likewise.
* examples/transition.scm: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sly/helpers.scm: Delete.
* sly/utils.scm: New file.
* Makefile.am (SOURCES): Remove old file. Add new one.
* sly/render/camera.scm: s/helpers/utils/
* sly/scene.scm: Likewise.
* sly/shader.scm: Likewise.
* sly/sprite.scm: Likewise.
* sly/texture.scm: Likewise.
* sly/transform.scm: Likewise.
* examples/tilemap.scm: Likewise.
|
|
|
|
| |
* examples/2048/2048: Update.
|
|
|
|
| |
* examples/simple.scm: Update.
|
|
|
|
| |
* examples/tilemap.scm: Update it.
|
|
|
|
| |
* examples/scene-graph.scm: Update to use new scene-node DSL.
|
|
|
|
| |
* examples/images/crate.png: New file.
|
| |
|