• Advertisement
Sign in to follow this  

How to display more then fonts/text?

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