Jump to content
  • Advertisement
Sign in to follow this  
swinchen

2 Ways to do 2D in OpenGL?

This topic is 4845 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, It looks like there are two ways to display 2D images in OpenGL... 1) Using glBitmap, and or the Pixel functions. 2) Creating a quad and binding a texture to it. What are the advantages, and disadvantages of each method? Thanks, Sam. p.s. Are there any OpenGL functions you strongly recommend staying away from?

Share this post


Link to post
Share on other sites
Advertisement
The quad way is much faster since it is accelerated by the video card, I'd avoid staying away from glBitmap and that way of doing things and instead stick with using Ortho mode and quads.

Share this post


Link to post
Share on other sites
Thanks,

Do you know of a list of "Do's and Don'ts in OpenGL"?

I wouldn't have known that glBitmap wasn't accelerated unless someone told me.

Share this post


Link to post
Share on other sites
Quote:
Original post by cozman
I'd avoid staying away from glBitmap and that way of doing things and instead stick with using Ortho mode and quads.


"I'd avoid staying away" is saying: Don't stay away. [lol]

Share this post


Link to post
Share on other sites
Quote:
Original post by swinchen
Do you know of a list of "Do's and Don'ts in OpenGL"?


Generally you should just try reading the various introductory articles (eg. NeHe) and see what they do. That way you can get an idea of the methods that are in general use for each situation.

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!