| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
| |
* sdl2/bindings.scm: Add "AUDIO_*" constants.
* sdl2/bindings/mixer.scm: New file.
* sdl2/mixer.scm: New file.
* Makefile.am (SOURCES): Add new files.
|
| |
|
|
|
|
|
|
| |
* sdl2/bindings/ttf.scm: New file.
* sdl2/ttf.scm: New file.
* Makefile.am (SOURCES): Add them.
|
|
|
|
|
| |
* sdl2/surface.scm (<surface>): s/context/surface/ in record type
printer.
|
|
|
|
|
|
|
| |
* sdl2/bindings.scm (sdl-color): New variable.
* sdl2.scm (<color>): New record type.
(make-color, color?, color-r, color-g, color-b, color-a, color->struct): New
procedures.
|
| |
|
|
|
|
|
|
| |
* sdl2/bindings/image.scm: New file.
* sdl2/image.scm: New file.
* Makefile.am (SOURCES): Add them.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* sdl2/events.scm (<joystick-button-event>): New record type.
(make-joystick-button-event, joystick-button-event?,
joystick-button-down-event?, joystick-button-up-event?,
joystick-button-event-timestamp, joystick-button-event-which,
joystick-button-event-button, joystick-button-event-pressed?,
parse-joystick-button-event): New procedures.
(poll-event): Add support for joystick button events.
|
|
|
|
|
|
|
|
|
| |
* sdl2/events.scm (<joystick-axis-event>): New record type.
(make-joystick-axis-event, joystick-axis-event?,
joystick-axis-event-timestamp, joystick-axis-event-which,
joystick-axis-event-axis, joystick-axis-event-value,
parse-joystick-axis-event): New procedures.
(poll-event): Add support for joystick axis motion events.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sdl2/bindings.scm (button-mask): New procedure.
(SDL_BUTTON_LMASK, SDL_BUTTON_RMASK, SDL_BUTTON_MMASK,
SDL_BUTTON_X1MASK, SDL_BUTTON_X2MASK): New variables.
* sdl2/events.scm (<mouse-motion-event>): New record type.
(make-mouse-motion-event mouse-motion-event?,
mouse-motion-event-timestamp, mouse-motion-event-window-id,
mouse-motion-event-which, mouse-motion-event-buttons,
mouse-motion-event-x, mouse-motion-event-y, mouse-motion-event-x-rel,
mouse-motion-event-y-rel, parse-mouse-motion-event): New procedures.
|
|
|
|
|
|
| |
Good ol' fencepost error strikes again.
* sdl2/events.scm (parse-window-event): Fix off-by-1 error.
|
|
|
|
| |
* sdl2/events.scm (keyboard-down-event?, keyboard-up-event?): New procedures.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sdl2/bindings.scm (SDL_BUTTON_LEFT, SDL_BUTTON_RIGHT,
SDL_BUTTON_MIDDLE, SDL_BUTTON_X1, SDL_BUTTON_X2): New variables.
* sdl2/events.scm (<mouse-button-event>): New record type.
(make-mouse-button-event, mouse-button-event?,
mouse-button-down-event?, mouse-button-up-event?,
mouse-button-event-timestamp, mouse-button-event-window-id,
mouse-button-event-which, mouse-button-event-button,
mouse-button-event-pressed?, mouse-button-event-clicks,
mouse-button-event-x, parse-mouse-button-event): New procedures.
(poll-event): Add support for mouse button events.
|
|
|
|
|
|
|
|
|
|
|
|
| |
So far, only window and keyboard events are handled. More to come in
future patches.
This patch adds a *ton* of constants that I'm not going to mention in
this log because it would be too damn long.
* sdl2/bindings.scm (sdl-poll-event): New procedure.
* sdl2/events.scm: New file.
* Makefile.am (SOURCES): Add it.
|
| |
|
| |
|
|
|
|
|
| |
* sdl2/video.scm (call-with-window): Use a pre-existing window object
instead of making a new one.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* sdl2/bindings.scm (sdl-rw-from-file, sdl-free-surface,
sdl-load-bmp-rw): New procedures.
* sdl2/surface.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
|
|
|
|
|
|
| |
* sdl2/bindings.scm (SDL_RENDERER_SOFTWARE, SDL_RENDERER_ACCELERATED,
SDL_RENDERER_PRESENTVSYNC, SDL_RENDERER_TARGETTEXTURE): New variables.
(sdl-create-renderer, sdl-destroy-renderer, sdl-render-clear,
sdl-render-present, sdl-render-copy, sdl-create-texture-from-surface):
New procedures.
* sdl2/render.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
| |
* examples/blank-window.scm: New file.
|
|
|
|
|
| |
* sdl2/bindings.scm (sdl-get-ticks): New procedure.
* sdl2.scm (sdl-ticks): New procedure.
|
| |
|
|
Let's do this!
|