2 Ways to do 2D in OpenGL?

Started by
3 comments, last by Kylotan 18 years, 8 months ago
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?
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.
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.

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]

The best thing to do is just choose whatever you think you'd prefer, and go for it. -Promit
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.

This topic is closed to new replies.

Advertisement