Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace figl with the new guile-opengl official release. | David Thompson | 2014-03-23 | 1 | -2/+2 |
| | |||||
* | Change license to GPLv3+. | David Thompson | 2014-03-08 | 1 | -8/+8 |
| | |||||
* | Import new signal module | David Thompson | 2014-02-17 | 1 | -1/+1 |
| | | | | | | * 2d/font.scm: Import (2d signal). * 2d/game.scm: Import (2d signal). * 2d/sprite.scm: Import (2d signal). | ||||
* | Move texture anchor procedure. | David Thompson | 2014-02-16 | 1 | -14/+2 |
| | | | | | * 2d/sprite.scm (make-anchor): Delete it. * 2d/texture.scm (anchor-texture): New procedure. | ||||
* | Formatting cleanup. | David Thompson | 2014-02-16 | 1 | -15/+15 |
| | | | | * 2d/sprite.scm: Reindent file. | ||||
* | Change sprite-vertex to texture-vertex. | David Thompson | 2014-02-16 | 1 | -46/+3 |
| | | | | | | | | | | * 2d/sprite.scm (sprite-vertex, sprite-vertex-size, x-offset, s-offset, pack-sprite-vertices, draw-sprite-vertices): Delete. (update-sprite-vertices!): Use 'pack-texture-vertices'. (make-sprite): Use 'texture-vertex'. (draw-sprite): Use 'draw-texture-vertices'. * 2d/texture.scm (texture-vertex, texture-vertex-size, x-offset, s-offset, pack-texture-vertices, draw-texture-vertices): New variables. | ||||
* | Use GLSL shaders for sprites. | David Thompson | 2014-02-16 | 1 | -278/+105 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2d/sprite.scm: (sprite-vertex): Remove color vertex. (r-offset): Delete it. (pack-sprite-vertices): Remove logic moved to shader. (draw-sprite-vertices): Remove color vertex array rendering. (sprite-shader): New variable. (<sprite>): Remove dirty field and adjust setters. (make-anchor): New procedure. (update-sprite-vertices!): Use new 'pack-sprite-vertices'. (make-sprite): Use 'make-anchor' and 'update-sprite-vertices!'. (dirty-sprite-setter): Delete it. (load-sprite): Formatting. (sprite-animation-texture): Delete it. (drawable-texture): New procedure. (sprite-texture): Extract body to 'drawable-texture'. (sprite-anchor-vector): Delete it. (set-sprite-anchor!): Reimplemented. (update-sprite-animator!): Update vertices. (draw-sprite): Use shader program. (<sprite-batch>, make-sprite-batch, sprite-batch?, sprite-batch-max-size, sprite-batch-size, set-sprite-batch-size!, sprite-batch-texture, set-sprite-batch-texture!, sprite-batch-vertices, sprite-batch-draw, with-sprite-batch): Delete all sprite batch code. * data/Makefile.am (shadersdir, shaders_DATA): New variables. * data/shaders/sprite-fragment.glsl: New shader. * data/shaders/sprite-vertex.glsl: New shader. | ||||
* | Remove dynamic scoping of agendas. | David Thompson | 2014-02-06 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | * 2d/agenda.scm: (*global-agenda*, current-agenda, with-agenda): Delete. (agenda?, agenda-time): Export. (schedule-every, schedule-each): Rename schedule-every to schedule-each. (schedule-next): Delete. * 2d/game.scm: (game-agenda): New variable. (update): Tick game-agenda. * 2d/repl.scm: Use new agenda API. * 2d/sprite.scm: Use new agenda API. * 2d/time.scm: (time-every, time-each, time-delay): Change signature and use new agenda API. * examples/coroutine.scm: Use new agenda API. * examples/particles.scm: Use new agenda API. | ||||
* | Add new scheduling procedures and rename existing ones. | David Thompson | 2014-01-07 | 1 | -1/+1 |
| | | | | | | | | * 2d/agenda.scm (agenda-schedule, schedule): Rename. (agenda-schedule-interval, schedule-interval): Rename. (schedule-next, schedule-every): New procedures. * 2d/sprite.scm: Use schedule-every. * 2d/time.scm (time-every): Use schedule-interval. | ||||
* | Allow signals to be used for certain sprite properties. | David Thompson | 2013-11-30 | 1 | -6/+7 |
| | | | | | * 2d/sprite.scm (update-sprite-vertices!) (draw-sprite-batched): Use signals. | ||||
* | Clean up docstrings for sprite module. | David Thompson | 2013-09-18 | 1 | -13/+29 |
| | |||||
* | Animate sprites during game updates instead of on render. | David Thompson | 2013-09-15 | 1 | -2/+26 |
| | | | | | Frame rate is independent of the update rate, so the old way didn't make sense. | ||||
* | Change animation API. | David Thompson | 2013-09-15 | 1 | -21/+19 |
| | | | | | | | | This should have been broken into more commits, but here we are: Rename <animation-state> to <animator>. Better name, less verbose. Make animators mutable because it makes more sense than when animation-states where immutable. Update sprite module to reflect the animation API changes. | ||||
* | Clean up lines longer than 80 characters. | David Thompson | 2013-08-29 | 1 | -3/+6 |
| | |||||
* | Fix issue #9. | David Thompson | 2013-08-29 | 1 | -3/+1 |
| | | | | | draw-sprite-vertices was drawing the entire vertex array rather than only drawing the amount specified in the size argument. | ||||
* | Replace old vector module with new vector2 module. | David Thompson | 2013-08-27 | 1 | -6/+8 |
| | |||||
* | Fix typo. | David Thompson | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | Use new color module. | David Thompson | 2013-08-17 | 1 | -7/+7 |
| | |||||
* | Move gl.scm to wrappers subdirectory. | David Thompson | 2013-08-14 | 1 | -1/+1 |
| | |||||
* | Whitespace. | David Thompson | 2013-08-02 | 1 | -2/+0 |
| | |||||
* | Refactor pack-sprite-vertices. | David Thompson | 2013-08-02 | 1 | -52/+36 |
| | |||||
* | Refactor sprite vertex array rendering procedures. | David Thompson | 2013-08-02 | 1 | -65/+38 |
| | |||||
* | Simplify sprite module now that textures and texture regions are a unified type. | David Thompson | 2013-08-02 | 1 | -69/+27 |
| | |||||
* | Only perform sprite rotation math when necessary. | David Thompson | 2013-07-30 | 1 | -28/+57 |
| | |||||
* | Refactor sprite vertex packing. | David Thompson | 2013-07-29 | 1 | -121/+109 |
| | |||||
* | Only update sprite vertex list when the sprite is dirty. | David Thompson | 2013-07-29 | 1 | -7/+23 |
| | |||||
* | Fix figl enum. | David Thompson | 2013-07-28 | 1 | -2/+2 |
| | |||||
* | Add rotation and scaling support to sprite batch. | David Thompson | 2013-07-22 | 1 | -17/+36 |
| | |||||
* | Split sprite module into 3 modules. | David Thompson | 2013-07-22 | 1 | -251/+38 |
| | |||||
* | Add support for colors in a sprite batch. | David Thompson | 2013-07-21 | 1 | -9/+16 |
| | |||||
* | Use sprite color when rendering without a batch. | David Thompson | 2013-07-21 | 1 | -6/+10 |
| | |||||
* | Update sprite module to reflect changes in figl API. | David Thompson | 2013-07-21 | 1 | -6/+7 |
| | |||||
* | Change animation-state type to be immutable. | David Thompson | 2013-07-18 | 1 | -20/+27 |
| | |||||
* | Create animation type. | David Thompson | 2013-07-17 | 1 | -25/+122 |
| | |||||
* | Use rgba->gl-color in sprite module. | David Thompson | 2013-07-17 | 1 | -3/+5 |
| | |||||
* | Add support for sprites that use texture regions and automatic drawing to a ↵ | David Thompson | 2013-07-06 | 1 | -32/+104 |
| | | | | batch. | ||||
* | Update TODO list. | David Thompson | 2013-07-06 | 1 | -3/+0 |
| | |||||
* | Add dynamic state to track the current sprite batch. | David Thompson | 2013-07-06 | 1 | -2/+12 |
| | |||||
* | Change sprite-batch-draw parameter list to use optional keyword arguments. | David Thompson | 2013-07-06 | 1 | -3/+4 |
| | |||||
* | Deleted texture module and moved contents into sprite module. | David Thompson | 2013-07-06 | 1 | -7/+159 |
| | |||||
* | Add optional texture coordinate parameters to texture-quad and ↵ | David Thompson | 2013-07-06 | 1 | -6/+7 |
| | | | | sprite-batch-draw. | ||||
* | Fix sprite batch not rendering the correct number of vertices. | David Thompson | 2013-07-06 | 1 | -1/+1 |
| | |||||
* | Create simple sprite batch renderer. | David Thompson | 2013-06-27 | 1 | -1/+116 |
| | |||||
* | Draw sprites using vertex arrays. | David Thompson | 2013-06-26 | 1 | -19/+84 |
| | |||||
* | Add anchor property to sprite object. | David Thompson | 2013-06-23 | 1 | -10/+21 |
| | |||||
* | Use a vector for sprite scale. | David Thompson | 2013-06-23 | 1 | -19/+11 |
| | |||||
* | Use a vector for sprite position. | David Thompson | 2013-06-23 | 1 | -13/+12 |
| | |||||
* | Use keyword arguments in make-sprite and load-sprite. | David Thompson | 2013-06-23 | 1 | -5/+7 |
| | |||||
* | Add default sprite arguments to load-sprite. | David Thompson | 2013-06-23 | 1 | -7/+9 |
| | |||||
* | Fix sprite default scale values. | David Thompson | 2013-06-16 | 1 | -1/+1 |
| |