Jump to content
  • Advertisement
Sign in to follow this  
ajm113

How to display more then fonts/text?

This topic is 3880 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

Are their any tutorials on displaying maybe images to the screen that scroll along the window forever in a loop? Then also return the image's position if it's in 0 by x?

Share this post


Link to post
Share on other sites
Advertisement
You can achieve a scroll effect by simply updating the texture coordinates every refresh. Something like:

tex.x = (tex.x + 0.01) % 1.0f;

where tex is a 2d vector representing the texture (u, v) coordinate. I think you might have to set a texture property to wrap or something like that as well.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!