summaryrefslogtreecommitdiff
path: root/2d/window.scm
Commit message (Collapse)AuthorAgeFilesLines
* Replace vector2 module with a more generic vector module.David Thompson2014-06-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * 2d/vector2.scm: Delete it. * 2d/vector.scm: New file. * Makefile.am (SOURCES): s/vector2/vector. * 2d/font.scm: * 2d/keyboard.scm: * 2d/mouse.scm: * 2d/rect.scm: * 2d/shader.scm: * 2d/sprite.scm: * 2d/texture.scm: * 2d/transform.scm: * 2d/window.scm: * examples/2048/2048: * examples/animation.scm: * examples/coroutine.scm: * examples/font.scm: * examples/particles.scm: * examples/simple.scm: * examples/tilemap.scm: Use vectors instead of defunct vector2.
* Don't open window upon importing the (2d window) module.David Thompson2014-03-291-8/+1
| | | | | | * 2d/window.scm (open-window): Remove default argument. * examples/common.scm: Open a window.
* Replace figl with the new guile-opengl official release.David Thompson2014-03-231-1/+1
|
* Change license to GPLv3+.David Thompson2014-03-081-8/+8
|
* Use new signal API for window module.David Thompson2014-02-171-19/+21
| | | | | | | * 2d/window.scm: (<window>): Don't export. (window-width, window-height, window-position, window-projection): Use new signal API. (open-window): Set 'window-position'.
* Add window-projection signal.David Thompson2014-02-151-0/+8
| | | | * 2d/window.scm (window-projection): New variable.
* Add window-close-hook.David Thompson2014-01-261-1/+9
| | | | * 2d/window.scm: New hook.
* Move OpenGL viewport settings to game module.David Thompson2014-01-261-7/+2
| | | | | | * 2d/window.scm (open-window): Remove viewport config. * 2d/game.scm (draw): Add viewport config.
* Move SDL event handling to a separate module.David Thompson2014-01-261-1/+1
| | | | | | | | | | | | * 2d/event.scm: New module. * 2d/game.scm: Remove event handling code. * 2d/keyboard.scm: Import (2d event) instead of (2d game). * 2d/mouse.scm: Import (2d event) instead of (2d game). * 2d/window.scm: Import (2d event) instead of (2d game).
* Add window-resize-hook.David Thompson2014-01-261-1/+6
| | | | * 2d/window.scm (window-resize-hook): New hook.
* Initialize audio in audio module instead of window module.David Thompson2014-01-221-2/+0
| | | | | | | * 2d/window.scm (open-window, close-window): Remove open/close audio calls. * 2d/audio.scm: Open audio when module is imported.
* Update window module to use new signals API.David Thompson2013-12-151-4/+7
| | | | | * 2d/window.scm (window-width, window-height): New signals. (window-position): Define in terms of signal-map.
* Make init a non-keyword argument in make-signal procedure.David Thompson2013-12-121-1/+1
| | | | | | | * 2d/signals.scm (make-signal): Change parameter list. * 2d/mouse.scm (mouse-position): Remove #:init keyword. * 2d/time.scm (time-interval, time-delay): Remove #:init keyword. * 2d/window.scm (window-size): Remove #:init keyword.
* Open window when (2d window) is imported.David Thompson2013-12-031-0/+7
| | | | * 2d/window.scm: Open window on import.
* Move event handlers and signals into their own modules.David Thompson2013-12-011-0/+12
| | | | | | | | | | | * 2d/game.scm (register-event-handler): New procedure. (mouse-*, key-*, window-*): Remove signals. * 2d/window.scm (window-size): New signal. * 2d/mouse.scm: New module. * 2d/keyboard.scm: New module.
* Use dynamic-wind in with-window form.David Thompson2013-12-011-4/+4
| | | | * 2d/window.scm (with-window): Use dynamic-wind.
* Add with-window form.David Thompson2013-11-301-10/+36
| | | | | | | | | * 2d/window.scm (<window>): New record type. (open-window): Use window object. (close-window): Change docstring. * 2d/game.scm (<game>, make-game): Remove window properties. (run-game): Remove window logic.
* Clean up docstrings for window module.David Thompson2013-09-151-4/+3
|
* Open SDL audio when window is opened.David Thompson2013-09-111-0/+3
|
* Change window module API.David Thompson2013-09-061-19/+10
| | | | | Users will no longer have to interface directly with this module. They will simply specify window parameters when creating game objects.
* Make the origin the top-left corner of the window again.David Thompson2013-08-261-1/+1
|
* Change origin to bottom-left corner of window.David Thompson2013-08-171-1/+1
|
* Init SDL when window module is loaded instead of needing an explicit init call.David Thompson2013-08-151-8/+4
|
* Add optional resizable paramter to open-window.David Thompson2013-07-211-16/+18
|
* Update to guile-sdl 0.5.0 API.David Thompson2013-07-211-2/+2
|
* Add window-title and set-window-title! procedures.David Thompson2013-07-171-1/+11
|
* Move initialization to it's own procedure.David Thompson2013-07-171-6/+12
|
* Enable unicode characters in SDL.David Thompson2013-06-251-1/+3
|
* Add close-window procedure.David Thompson2013-06-161-1/+7
|
* Add window module.David Thompson2013-06-161-0/+46