Jump to content
  • Advertisement
Sign in to follow this  
one mind

OpenGL How do you display 2d .gifs in opengl?

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

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

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!