View Full Version : HELP Getting pixels color
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: email@example.com
First, use glReadPixels.
Second, you don't create windows with OpenGL. You do it with the Win32 API (assuming you run Windows of course).
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.