Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

snisarenko

Just something Interesting to know

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

I don''t know if any of you noticed but .... If you create and run an empty OpenGL application that doesn''t clear the buffer and doesn''t draw anything, but just swaps buffers. And If you run another OpenGL Application that does something before that.... Then this empty OpenGL app will display the last buffer of the previous openGL application.

Share this post


Link to post
Share on other sites
Advertisement
Oh yes this is known. =) The same thing happens in DirectDraw (Dx7) and in DirectX Graphics(Dx8 & Dx9)when you swap the primary with the secondary buffer without clearing it.

Another more interesting effect is that when you play a game, like Aliens Vs. Predator 2 and then initialize a backbuffer swapping application, then you''ll see images of the game itself being displayed instead of random junk of memory. =)

Share this post


Link to post
Share on other sites
Hmm can you do a glReadPixels or what ever the function is to get the color of a pixel on this swaping program?

Share this post


Link to post
Share on other sites

  • 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!