PDA

View Full Version : HELP Getting pixels color



12-27-2001, 02:31 AM
Hey. Does somebody know how to get pixel color in OpenGl like getpixel in old Borland C++. I need it because i'd like to save image data. Maybe is there other way to do it ??? And second question - Is there in OpenGl possible to create two independent windows ???
It's very important for me . Thanks.
My mail is: danielma@go2.pl

Bob
12-27-2001, 03:08 AM
First, use glReadPixels.
Second, you don't create windows with OpenGL. You do it with the Win32 API (assuming you run Windows of course).

Bob
12-27-2001, 03:10 AM
Forgot to answer the second question http://www.opengl.org/discussion_boards/ubb/smile.gif

Create the second window the same way you create the first window. Just make sure to activate the proper RC so you draw to the correct window.