[SDL] Screen rotation
Lilith Calbridge
lilith at dcccd.edu
Sat Jan 5 12:07:32 PST 2008
At first gloss this would seem a bit too simplistic. No matter whether you rotate the monitor to the left or right, the origin is in the wrong place. If you rotate clockwise the Y values would have to be the inverse (Y2 = pixelwidth - y1) and if you rotate counter-clockwise the X co-ordinates would suffer a similar translation.
Lilith
>>> On 1/5/2008 at 1:03 PM, Mason Wheeler <masonwheeler at yahoo.com> wrote:
> A simple solution would be to just switch the X and Y coordinates of
> everything you draw. This might be a bit overly simplistic, depending on
> what you have in mind, though...
More information about the SDL
mailing list