[SDL] "Perfect" circles
darkmatter at freeuk.com
Thu Nov 9 10:13:25 PST 2006
Thursday, November 9, 2006, 5:25:21 PM, you wrote:
> First, thank you to all for your answars! I'm so glad :)
> Second, I made this example to show you how I see the results (I build
> it on Windows, my main computer where I work is broken...).
That is undoubtedly caused by "units" being far too small. If you are
going to use a sin table in integer form, you should be using half of
the value for the floating point part of the number at least. Look up
"fixed point arithmetic" for more details.
Try "units" as 256.
Peter mailto:darkmatter at freeuk.com
More information about the SDL