Jump to content
  • Advertisement
Sign in to follow this  
coding penguin

float drawing in SDL

This topic is 4322 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!