• Advertisement
Sign in to follow this  

float drawing in SDL

This topic is 4230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement