summaryrefslogtreecommitdiff
path: root/sdl2
Commit message (Collapse)AuthorAgeFilesLines
* rect: Allow getters to be inlined.David Thompson2020-12-051-4/+4
|
* ttf: Return multiple values instead of a list in font-glyph-metrics.David Thompson2020-12-051-3/+7
|
* ttf: Return multiple values instead of a list in font-size.David Thompson2020-12-051-3/+3
|
* video: Update copyright year.David Thompson2020-12-051-1/+1
|
* video: Change window size/position procedures to return multiple values.David Thompson2020-12-051-1/+2
|
* video: Change set-window-size! argument list.David Thompson2020-12-051-6/+3
|
* video: Change set-window-position! argument list.David Thompson2020-12-051-6/+3
|
* input: keyboard: Remove unnecessary module import.David Thompson2020-12-051-1/+0
|
* input: joystick: Remove unnecessary module import.David Thompson2020-12-051-1/+0
|
* video: Add more bindings.Leo Prikler2020-12-022-0/+36
| | | | | | | | | | | * sdl2/bindings.scm (sdl-window-get-minimum-size) (sdl-window-get-maximum-size, sdl-window-set-minimum-size) (sdl-window-set-maximum-size, sdl-window-set-resizable): New procedures. * sdl2/video.scm (window-minimum-size, window-maximum-size) (set-window-minimum-size!, set-window-maximum-size!) (set-window-resizable!): New procedures. * doc/api.texi: Document new (sdl2 video) bindings.
* render: Add more bindings.Leo Prikler2020-12-022-0/+86
| | | | | | | | | | | | * sdl2/bindings.scm (sdl-render-get-integer-scale, sdl-render-get-scale) (sdl-render-get-logical-size, sdl-render-get-viewport) (sdl-render-set-integer-scale, sdl-render-set-scale) (sdl-render-set-logical-size, sdl-render-set-viewport): New procedures. * sdl2/render.scm (render-get-integer-scale, render-get-logical-size) (render-get-scale, render-get-viewport, render-set-integer-scale) (render-set-logical-size, render-set-scale, render-set-viewport): New procedures. * doc/api.texi: Document new (sdl2 render) bindings.
* ttf: Add more bindings.Gerry Agbobada2020-10-092-0/+107
| | | | | | | | | | | | Bindings added: * TTF_FontAscent * TTF_FontDescent * TTF_FontLineSkip * TTF_SizeUTF8 * TTF_GlyphIsProvided * TTF_GetFontStyle * TTF_SetFontStyle
* Add blend mode bindings.Leo Prikler2020-09-303-0/+181
|
* render: Allow rect to be #f in render-draw-rect and render-draw-rects.Leo Prikler2020-09-291-2/+6
|
* ttf: Fix bytevector offsets in font-glyph-metrics.David Thompson2020-05-121-2/+2
| | | | -_______________-
* ttf: Export font-glyph-metrics.David Thompson2020-05-121-0/+1
| | | | -_-
* ttf: Add TTF_GlyphMetrics binding.David Thompson2020-05-122-0/+17
| | | | | Thanks to Gerry Agbobada for requesting this and sending an initial patch.
* Fix typo in sdl2/config.scm.in.David Thompson2020-04-071-1/+1
|
* Automagically detect SDL2_image, SDL2_ttf, SDL2_mixer library directories.David Thompson2020-04-071-4/+4
|
* windows: Fix SDL2_mixer DLL name.David Thompson2019-07-291-1/+1
|
* Add Windows compatibility.David Thompson2019-07-291-11/+8
|
* ttf: Fix incorrect function name in error message.Hugo Hörnquist2019-06-121-1/+1
| | | | * sdl2/ttf.scm (render-font-blended): Fix function name in error message.
* render: Add texture color/alpha mod bindings.Hugo Hörnquist2019-06-092-0/+50
| | | | | | | | | * sdl2/bindings.scm (sdl-set-texture-color-mod, sdl-get-texture-color-mod, sdl-set-texture-alpha-mod, sdl-get-texture-alpha-mood): New procedures. * sdl2/render.scm (set-texture-color-mod!, set-texture-alpha-mod!, get-texture-color-mod, get-texture-alpha-mod): New procedures. * doc/api.texi: Document new procedures.
* render: Add SDL_SetRenderTarget bindings.Hugo Hörnquist2019-06-062-0/+54
| | | | | | | | | | | * sdl2/bindings.scm (SDL_TEXTUREACCESS_STATIC, SDL_TEXTUREACCESS_STREAMING, SDL_TEXTUREACCESS_TARGET): New variables. (sdl-create-texture, sdl-set-render-target, sdl-get-render-target): New procedures. * sdl2/render.scm (symbol->sdl-access-format, make-texture, set-render-target!, get-render-target): New procedures. * doc/api.texi: Document new procedures.
* render: Add SDL_RenderDrawRect and SDL_RenderFillRect bindings.Hugo Hörnquist2019-06-042-0/+53
| | | | | | | | * sdl2/bindings.scm (sdl-render-draw-rect, sdl-render-draw-rects, sdl-render-fill-rect, sdl-render-fill-rects): New procedures. * sdl2/render.scm (render-draw-rect, render-draw-rects, render-fill-rect, render-fill-rects): New procedures. * doc/api.texi: Document new procedures.
* render: Add SDL_RenderDrawLines binding.Pierre-Antoine Rouby2019-05-312-0/+19
| | | | | | * sdl2/bindings.scm (sdl-render-draw-lines): New procedure. * sdl2/render.scm (render-draw-lines): New procedure. * doc/api.texi: Document it.
* render: Add SDL_RenderDrawPoints binding.Pierre-Antoine Rouby2019-05-312-0/+19
| | | | | | * sdl2/bindings.scm (sdl-render-draw-points): New procedure. * sdl2/render.scm (render-draw-points): New procedure. * doc/api.texi (Rendering): Document it.
* render: Fix delete-texture! exporting.Pierre-Antoine Rouby2019-05-311-1/+1
| | | | * sdl2/render.scm: Fix function name.
* render: Add SDL_DestroyTexture binding.Pierre-Antoine Rouby2019-05-272-0/+7
| | | | | | * sdl2/bindings.scm (sdl-destroy-texture): New procedure. * sdl2/render.scm (delete-texture!): New procedure. * doc/api.texi (Renderer): Document it.
* render: Add SDL_RenderDrawPoint binding.Pierre-Antoine Rouby2019-05-272-0/+10
| | | | | | * sdl2/bindings.scm (sdl-render-draw-line): New procedure. * sdl2/render.scm (render-draw-line): New procedure. * doc/api.texi (Rendering): Document it.
* render: Add SDL_RenderDrawLine binding.Pierre-Antoine Rouby2019-05-232-0/+8
| | | | | | * sdl2/bindings.scm (sdl-render-draw-line): New procedure. * sdl2/render.scm (render-draw-line): New procedure. * doc/api.texi: Document it.
* render: Add SDL_RenderCopyEx binding.Pierre-Antoine Rouby2019-05-212-9/+23
| | | | | | | | * sdl2/bindings.scm (sdl-point): New variable. (sdl-render-copy-ex): New procedure. * sdl2/render.scm (render-copy): Add optional arguments, angle and center. * doc/api.texi (Rendering): Document it.
* surface: Add SDL_FillRect binding.David Thompson2019-01-082-1/+15
| | | | | | * sdl2/bindings.scm (sdl-fill-rect): New procedure. * sdl2/surface.scm (fill-rect): New procedure. * doc/api.texi (Surfaces): Document it.
* surface: Add SDL_BlitScaled binding.David Thompson2019-01-082-1/+19
| | | | | | * sdl2/bindings.scm (sdl-blit-scaled): New procedure. * sdl2/surface.scm (blit-scaled): New procedure. * doc/api.texi (Surfaces): Document it.
* surface: Add SDL_BlitSurface binding.David Thompson2019-01-072-1/+19
| | | | | * sdl2/bindings.scm (sdl-blit-surface): New procedure. * sdl2/surface.scm (blit-surface): New procedure.
* Add rect module.David Thompson2019-01-071-0/+58
| | | | | * sdl2/rect.scm: New file. * Makefile.am (SOURCES): Add it.
* input: game-controller: Fix bug where right-y axis is invalid.David Thompson2019-01-051-1/+1
| | | | * sdl2/input/game-controller.scm (axis-symbol->int): Fix typo!
* Add binding for SDL_SetRenderDrawColor.Eero Leno2018-08-212-0/+9
| | | | | * sdl2/bindings.scm (sdl-set-render-draw-color): New procedure. * sdl2/render.scm (set-render-draw-color): New procedure.
* input: mouse: Add mouse-button-released?David Thompson2017-11-101-1/+6
| | | | * sdl2/input/mouse.scm (mouse-button-released?): New procedure.
* Add mouse input module.David Thompson2017-11-101-0/+67
| | | | | * sdl2/input/mouse.scm: New file. * Makefile.am (SOURCES): Add it.
* render: Fix broken render-copy procedure.David Thompson2017-11-101-7/+7
| | | | | * sdl2/render.scm (render-copy): Make srcrect and dstrect optional and do not use nil? to check them.
* Add binding for SDL_GetMouseState.David Thompson2017-11-101-0/+2
| | | | | | No high-level wrapper yet, though. * sdl2/bindings.scm (sdl-get-mouse-state): New procedure.
* Add clipboard bindings.David Thompson2017-11-102-0/+62
| | | | | | | * sdl2/bindings.scm (sdl-get-clipboard-text, sdl-set-clipboard-text, sdl-has-clipboard-text): New procedures. * sdl2/clipboard.scm: New file. * Makefile.am (SOURCES): Add it.
* Add SDL_GameControllerAddMappingsFromRW binding.David Thompson2017-11-102-1/+22
| | | | | | | * sdl2/bindings.scm (sdl-game-controller-add-mappings-from-file): New procedure. * sdl2/input/game-controller.scm (load-game-controller-mappings!): New procedure.
* render: Add srcrect and dstrect arguments to render-copy.Jona2017-06-062-4/+10
| | | | | * sdl2/bindings.scm (sdl-rect): New variable. * sdl2/render.scm (render-copy): Add srcrect and dstrect arguments.
* input: Add keyboard module.David Thompson2017-04-012-0/+292
| | | | | | * sdl2/bindings.scm (sdl-get-keyboard-state): New procedure. * sdl2/input/keyboard.scm: New file. * Makefile.am (SOURCES): Add it.
* surface: Export pixel-format-name.David Thompson2017-03-291-0/+1
| | | | * sdl2/surface.scm: Export pixel-format-name.
* surface: Parse SDL_PixelFormat, SDL_Palette, and SDL_Color structs.David Thompson2017-03-281-2/+199
| | | | | | | | | | | | | * sdl2/surface.scm (color?, make-color, color-r, color-g, color-b, color-a, palette?, palette-length, palette-colors, pixel-format?, pixel-format-bits-per-pixel, pixel-format-bytes-per-pixel, pixel-format-red-mask, pixel-format-green-mask, pixel-format-blue-mask, pixel-format-alpha-mask, surface-pixel-format, wrap-palette, unwrap-palette, wrap-pixel-format, unwrap-pixel-format): New procedures. (<color>, <palette>, <pixel-format>): New types. (%palette-types, %pixel-format-types): New variables. (palette-parse-match, pixel-format-parse-match): New syntax. * .dir-locals.el: Add indent rules for new macros.
* events: Parse the "repeat" field of a keyboard event as a boolean.David Thompson2017-01-011-4/+4
| | | | | | | | * sdl2/events.scm (<keyboard-event>): Rename "repeat" field to "repeat?" (keyboard-event-repeat): Replace with... (keyboard-event-repeat?): ... this. (parse-keyboard-event): Parse "repeat" field as a boolean.
* events: Add predicates for different controller device events.David Thompson2017-01-011-0/+21
| | | | | * sdl2/events.scm (controller-added-event?, controller-removed-event?, controller-remapped-event?): New procedures.