Jump to content
  • Advertisement
Sign in to follow this  
goyg

About glDrawPixels()

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

glDrawPixels(),Is this function should be used in the last of rendering? If I want to render after operating with pixels, but the picture which I get in the screen is the fragment which I get with the function glDrawPixels().The rendering after this function doesn't work. My operate order is: first rendering ---> glReadPixels() ---> glDrawPixels() ---> second rendering. I just want to know what should I do if I want to get the correct rendering. [Edited by - goyg on July 18, 2008 8:05:22 PM]

Share this post


Link to post
Share on other sites
Advertisement
You can use glDrawPixels whenever you want. Just remember that it generates fragments just like any other rendering. It is effected by depth testing, stencil, enabled textures, enabled lighting, shaders, etc.

Quote:
If I want to render after operate with pixels, how can I do?

What?

Share this post


Link to post
Share on other sites
I think I have found the reason why the second rendering fail.
glDrawPixels() send the pixels to the fragment ,but it doesn't have any other buffers(z-buffer and the others).When do the second rendering , the fragment test will drop the second rendering. So the the second rendering doesn't work.

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!