[SDL] Sprite Origin positions

Jonathan Dearborn grimfang4 at gmail.com
Fri Sep 19 09:44:42 PDT 2014

Just to put it out there...  SDL_gpu blits images at their center points by
default, so positioning with scaling and rotation works without any extra
effort.  When a pivot point is used (GPU_BlitTransformX()), then the image
is rendered relative to that point (i.e. you can use 0,0 as the hotspot,
which is what SDL does normally).

Jonny D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140919/da5b498e/attachment-0002.htm>

More information about the SDL mailing list