float drawing in SDL

Started by
1 comment, last by coding penguin 17 years, 9 months ago
Hi! How can i draw in SDL with float parameters? When i try it, compiler automatic convert it to Sint16 thank you
Advertisement
SDL, unlike OpenGL or DirectX, draws directly to the pixel raster. In other words, each point MUST be an integer coordinate. You need to round your floats off to the nearest integer.
oh, thats not good....
so how can i make ball moving to all ways?
i need frame limiter or what?(because when i put too big values, ball moves too quickly)

This topic is closed to new replies.

Advertisement