Jump to content
  • Advertisement
Sign in to follow this  
LPVOID_CH

GUI - glDrawPixels or GL_QUADS?

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

Hi all

In my game I have a 2D GUI wich I draw in the glOrtho mode and with glBegin(GL_QUADS), this works very well. My question is if it would be better to draw the 2D GUI with glDrawPixels concidering performance. Is there any difference?

thx

Share this post


Link to post
Share on other sites
Advertisement
On todays hardware and drivers, glDrawPixels performs just fine. In the old days, such as on a matrox G200, the performance would drop to 1 - 3 FPS.If you plan on one day updating and going with GL 4.2 core profile, you should know that glDrawPixels is gone.

Share this post


Link to post
Share on other sites
Ok, so I stay with the glBegin(GL_QUADS) one. I dont want to change the gui rendering since glDrawPixels hasn't any advantages (and will be oboslete in future like V-man mentioned).

thanks

Share this post


Link to post
Share on other sites
You should note that glBegin style rendering is also deprecated in core profiles (as is, I believe, the GL_QUADS primitive type).

Share this post


Link to post
Share on other sites
Plain old vertex arrays are gone as well. Everything must be done through VBO + VAO.
Of course, that is a core profile thing.

You can still create compatibility profile on Windows.

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!