How do you display 2d .gifs in opengl?
Hello,
I have finally set opengl up for 2D display but cant figure out the standard way to move a gif image around the screen.
Any links to a tutorial or even just the opengl commands used would be great.
Thanks :)
You have 2 options: either using the pixel functions like glRasterPos, glDrawPixels, glCopyPixels, ..., or else render a textured quad (yes, also for 2D possible), where the GIF is 1st to be converted into a texture, of course.
In the former case, glRasterPos defines the origin for e.g. glDrawPixels. In the latter case, the MODELVIEW matrix and quad's vertex co-ordinates define the position. What method are you preferring?
In the former case, glRasterPos defines the origin for e.g. glDrawPixels. In the latter case, the MODELVIEW matrix and quad's vertex co-ordinates define the position. What method are you preferring?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement