How to display more then fonts/text?
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?
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement