Hi all,
I have a small project where I'm playing with lispbuilder (
https://github.com/ahungry/sdl-blub), however I cannot for the life of me get the zoom (or rotate) functions to scale, rotate or flip the surface of my loaded image.
A snippet is below:
(defparameter *img-player* (sdl:load-image "~/src/lisp/sdl-blub/assets/sprites/minimal-hero.png"))
(sdl:zoom-surface 2 2 :surface *img-player*)
(sdl:draw-surface-at *img-player* `#(,*x* ,*y*) :cell (aref animation *frame-index*))
Using this code simply renders the image at it's default size (which is a tiny 32x32 cell of a spritesheet).
If I omit the :surface key I receive an error about no default surface defined (yet somehow the draw-surface-at succeeds in copying my *img-player* surface there).
Thanks for any assistance,
-Matt