[SDL] Best way to rotate a sprite?

Sam Lantinga slouken at devolution.com
Wed Jan 29 08:48:01 PST 2003


> On Tuesday 28 January 2003 23:30, Sami Näätänen wrote:
> > On Tuesday 28 January 2003 22:54, Sami Näätänen wrote:
> > In fact the above thing doesn't work correctly, because the C standard
> > defines the %-operator as mathematically correct reminder operation.
> >
> > So the  -1 % 32 = -1, but we want it to be 31.

> Niggle time:

Please take this thread to an appropriate forum.

Thanks,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list