summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* live-reload: Protect against deleted files and also check ctime.David Thompson2014-11-301-2/+5
| | | | | * sly/live-reload.scm (live-reload): Check if file exists before making stat call. Check ctime in addition to mtime.
* examples: Update joystick example.David Thompson2014-11-301-45/+42
|
* examples: Update font example.David Thompson2014-11-301-15/+26
| | | | * examples/font.scm: Update.
* examples: Delete coroutine example.David Thompson2014-11-301-56/+0
| | | | | | Coroutines are now more of an implementation detail. * examples/coroutine.scm: Delete.
* examples: Update a few example programs.David Thompson2014-11-304-73/+90
| | | | | | | * examples/2048/2048: Update. * examples/animation.scm: Likewise. * examples/common.scm: Likewise. * examples/simple.scm: Likewise.
* render: group: Work on groups, not lists of children.David Thompson2014-11-301-6/+14
| | | | | * sly/render/group.scm (group-move, group-place, group-show): Replace children parameter with group.
* render: sprite: Alias make-sprite to sprite.David Thompson2014-11-301-2/+3
| | | | * sly/render/sprite.scm (sprite): New procedure.
* Delete another file that shouldn't have been committed.David Thompson2014-11-301-91/+0
| | | | * sly/cache.scm: Delete.
* examples: Update 2048.David Thompson2014-11-301-27/+29
| | | | * examples/2048/2048: Use new group/model procedures.
* render: Prefix group and model procedures.David Thompson2014-11-302-7/+7
| | | | | | | * sly/render/group.scm (move, place, show): Delete. (group-move, group-place, group-show): New procedures. * sly/render/model.scm (paint, blend): Delete. (model-paint, model-blend): New procedures.
* render: group: Make context optional when drawing.David Thompson2014-11-301-10/+12
| | | | * sly/render/group (draw-group): Use global context by default.
* math: tween: Memoize iterpolation procedure.David Thompson2014-11-301-1/+7
| | | | * sly/math/tween.scm (tween): Memoize interpolator.
* examples: Update 2048.David Thompson2014-11-301-129/+97
| | | | * examples/2048/2048: Update to use new Sly API.
* math: tween: Replace let* with let in ease-reflect.David Thompson2014-11-301-1/+1
| | | | * sly/math/tween.scm (ease-reflect): Use let instead of let*.
* render: texture: Reverse top/bottom in anchor-texture.David Thompson2014-11-301-6/+6
| | | | | * sly/render/texture.scm (anchor-texture): Reverse y coordinates between top and bottom anchors.
* math: Reimplement tween module formerly known as transition.David Thompson2014-11-303-151/+108
| | | | | | * sly/transition.scm: Delete. * sly/math/tween.scm: New file. * Makefile.am (SOURCES): Remove deleted file. Add new one.
* signal: Rename signal-reject to signal-drop.David Thompson2014-11-301-11/+11
| | | | | * sly/signal.scm (signal-reject): Delete. (signal-drop): New procedure.
* math: Add modulo*.David Thompson2014-11-301-1/+7
| | | | * sly/math.scm (modulo*): New procedure.
* signal: Change parameter name in signal-sample.David Thompson2014-11-301-13/+11
| | | | * sly/signal.scm (signal-sample): Change 'delay' to 'step'.
* signal: Add signal-time.David Thompson2014-11-301-1/+6
| | | | * sly/signal.scm (signal-time): New procedure.
* signal: Add signal-every and signal-since.David Thompson2014-11-301-0/+12
| | | | * sly/signal.scm (signal-every, signal-since): New procedures.
* render: sprite: Turn off depth test by default.David Thompson2014-11-301-1/+2
| | | | * sly/render/sprite.scm (make-sprite): Disable depth test.
* render: font: Alias 'make-label' to 'label'.David Thompson2014-11-301-3/+5
| | | | * sly/render/font.scm (label): New procedure.
* render: mesh: Add a finalizer to reclaim memory used by OpenGL.David Thompson2014-11-302-6/+24
| | | | | | | * sly/render/mesh.scm (<mesh>) [mesh-vbos]: New field. (mesh-guardian): New guardian. (make-mesh): Add new meshes to guardian. * sly/wrappers/gl.scm (glDeleteVertexArrays): New procedure.
* render: texture: Factorize bytevector to texture conversion.David Thompson2014-11-302-39/+21
| | | | | | * sly/render/texture.scm (bytevector->texture): New procedure. (bitmap->texture): Define in terms of 'bytevector->texture'. * sly/render/font.scm (render-text): Likewise.
* render: texture: Remove unneeded protection from texture guardian.David Thompson2014-11-301-4/+1
| | | | * sly/render/texture (texture-guardian): Remove 'false-if-exception'.
* render: camera: Fix orthographic camera such that the y-axis points up.David Thompson2014-11-301-1/+1
| | | | * sly/render/camera.scm (orthographic-camera): Reverse y-axis.
* input: keyboard: Reverse up/down in key-directions.David Thompson2014-11-291-2/+2
| | | | * sly/input/keyboard.scm (key-directions): Reverse up and down.
* render: Rename vertex-array to mesh.David Thompson2014-11-298-308/+258
| | | | | | | | | | | | | * sly/render/vertex-array.scm: Delete. * Makefile.am (SOURCES): Delete it. * sly/render/mesh.scm: Move vertex-array code and rename to mesh. * sly/render/model.scm (draw-model): s/vertex-array/mesh/ * sly/render/context.scm: Likewise. * sly/render/shape.scm (make-cube): Return a model object. * sly/render/font.scm (make-label): Likewise. * sly/render/sprite.scm (make-sprite): Likewise. Remove 'color' parameter. (load-sprite): Likewise.
* render: color: Add transparency.David Thompson2014-11-291-1/+6
| | | | * sly/render/color.scm (transparency): New procedure.
* Delete old rect module.David Thompson2014-11-291-212/+0
| | | | * sly/rect.scm: Delete.
* render: Delete renderer module.David Thompson2014-11-292-129/+0
| | | | | * sly/render/renderer.scm: Delete. * Makefile.am (SOURCES): Delete it.
* render: Delete scene module.David Thompson2014-11-292-92/+0
| | | | | * sly/render/scene.scm: Delete. * Makefile.am (SOURCES): Delete it.
* render: Define mesh in terms of model.David Thompson2014-11-291-25/+4
| | | | | | * sly/render/mesh.scm (<mesh>, %make-mesh, mesh?, mesh-vao, mesh-shader, mesh-texture): Delete. (make-mesh): Create a model object.
* render: Add transform stack to render context.David Thompson2014-11-291-5/+29
| | | | | | | | * sly/render/context.scm (<render-context) [transform-stack]: New field. (render-context-transform-stack): New accessor. (make-null-transform, make-transform-stack): New procedures. (make-render-context): Add 'transform-stack-size' parameter. (with-temp-transform): New syntax.
* render: Add group and model modules.David Thompson2014-11-293-0/+254
| | | | | | * sly/render/model.scm: New file. * sly/render/group.scm: New file. * Makefile.am (SOURCES): Add them.
* render: Draw methods now accept a 'transform' parameter.David Thompson2014-11-233-11/+3
| | | | | | * sly/render/renderer.scm (transform-render-op): Delete. * sly/render/scene.scm (scene->renderer): Update usage of 'draw' method. * sly/render/mesh.scm (draw): Add 'transform' parameter.
* scene: Drawable objects are now leaf nodes of the graph.David Thompson2014-11-231-17/+13
| | | | | | * sly/render/scene.scm (scene-node-object): Delete. (make-scene-node): Remove 'object' parameter. (scene->renderer): Transform drawables to render ops.
* scene: Remove code that should never have been committed.David Thompson2014-11-231-26/+0
|
* transform: Dedupe cblas-sgemm call.David Thompson2014-11-221-5/+1
| | | | | * sly/math/transform (transform*): Use 'transform*!' instead of direct 'cblas-sgemm' call.
* render: Reuse some transforms for each render call.David Thompson2014-11-221-30/+44
| | | | | | * sly/render/renderer.scm (apply-render-op): Mutate an existing transform instead of a creating a new one. (render): Likewise.
* render: Enable render context reuse when rendering scene graphs.David Thompson2014-11-222-8/+7
| | | | | | | * sly/render/renderer.scm (%make-renderer): Delete. (make-renderer): Expose record type constructor. * sly/render/scene.scm (scene->renderer): Add 'context' parameter. (draw-scene): Likewise.
* render: Add camera list back to renderer.David Thompson2014-11-222-12/+17
| | | | | | | * sly/render/renderer (apply-render-op): Add 'view' parameter. (%make-renderer, make-renderer): Add 'cameras' parameter. (renderer-cameras): New syntax. (render): Render ops for each camera.
* TODO: Add nine patches to the list.David Thompson2014-11-221-0/+4
| | | | * TODO.org: Add 'Nine patches'.
* Fix Guix environment config.David Thompson2014-11-221-2/+2
| | | | * package.scm: Use LTDL_LIBRARY_PATH instead of LD_LIBRARY_PATH.
* render: Enable blending in render context.David Thompson2014-11-101-1/+3
| | | | | * sly/render/context.scm (set-render-context-blend-mode!): Enable blending before applying a blend mode.
* Add autoconf and automake to guix environment.David Thompson2014-11-081-4/+6
| | | | * package.scm: Add autoconf and automake as inputs.
* Add mesa package to guix environment.David Thompson2014-11-081-1/+2
| | | | * package.scm: Add mesa as input.
* Add guix environment.David Thompson2014-11-082-0/+71
| | | | | * package.scm: New file. * README.org (Developing): New section.
* Delete more unneeded files.David Thompson2014-11-082-239/+0
| | | | | * sly/mode.scm: Delete. * sly/scene-graph.scm: Delete.