How to display more then fonts/text?

Started by
0 comments, last by scottrick49 16 years, 1 month ago
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?
Check out my open source code projects/libraries! My Homepage You may learn something.
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.
scottrick49

This topic is closed to new replies.

Advertisement