Sign in to follow this  
ajm113

How to display more then fonts/text?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this