summaryrefslogtreecommitdiff
path: root/2d/helpers.scm
Commit message (Collapse)AuthorAgeFilesLines
* Add current-agenda parameter.David Thompson2014-05-041-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * 2d/agenda.scm (current-agenda): New variable. (with-agenda): New macro. (agenda-time, tick-agenda!, clear-agenda!, schedule) (schedule-interval, schedule-each, wait): Remove agenda parameter. * 2d/game.scm (game-agenda): Delete it. (update): Tick current agenda. * 2d/helpers.scm (define-guardian): Remove agenda argument. * 2d/repl.scm (start-2d-repl): Remove agenda argument to schedule-each. * 2d/signal.scm (signal-sample, signal-delay, signal-throttle): Remove agenda parameter. * 2d/sprite.scm: * examples/common.scm: * examples/coroutine.scm: * examples/font.scm: * examples/particles.scm: Remove mention of game-agenda. * README.org: Update example snippets.
* Okay, I think I finally got all of the license headers updated.David Thompson2014-03-101-8/+8
|
* Rewrite define-guardian to avoid 'after-cg-hook'.David Thompson2014-02-171-11/+7
| | | | * 2d/helpers.scm (define-guardian): Don't use 'after-gc-hook'.
* Add define-guardian macro.David Thompson2014-02-091-1/+22
| | | | | | * 2d/helpers.scm (define-guardian): New macro. * 2d/texture.scm (reap-textures): Delete it. (texture-guardian): Defined using define-guardian.
* Remove unused export.David Thompson2014-01-121-2/+1
| | | | * 2d/helpers.scm (rgba->gl-color): Remove export.
* Clean up docstrings for helpers module.David Thompson2013-09-151-4/+3
|
* Use new color module.David Thompson2013-08-171-12/+0
|
* rgba->gl-color now returns a vector instead of a list.David Thompson2013-07-211-5/+5
|
* Add rgba->gl-color procedure.David Thompson2013-07-171-1/+15
| | | | | rgba->gl-color converts an RGBA color code in integer form into a list of color values for use with OpenGL calls. For example, passing #xffffffff returns '(1.0 1.0 1.0 1.0).
* Change = to equal?David Thompson2013-06-251-1/+1
|
* Create a helpers module for miscellaneous convenient procedures.David Thompson2013-06-251-0/+37