summaryrefslogtreecommitdiff
path: root/2d/window.scm
Commit message (Collapse)AuthorAgeFilesLines
* 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