surface: Parse SDL_PixelFormat, SDL_Palette, and SDL_Color structs.
authorDavid Thompson <dthompson2@worcester.edu>
Wed, 29 Mar 2017 00:45:11 +0000 (20:45 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Wed, 29 Mar 2017 00:45:11 +0000 (20:45 -0400)
commitcfe2a2f4ffd339bce763764098a6a415653b5acc
tree5450ff49cbc0de476f70d53e60f607103cee6587
parente80e6d4f79d98bd95eb0bbd90fc2a07c22241e83
surface: Parse SDL_PixelFormat, SDL_Palette, and SDL_Color structs.

* 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.
.dir-locals.el
sdl2/surface.scm