Dave, you're the MAN! This is what I feared, but hoped that maybe someone could give me a solution before I went through the work to store everything.
Oh well, thanks for the help. John --- David Smith <[EMAIL PROTECTED]> wrote: > > Doesn anyone know of a way to have openGL return a > > pixel color? > > According to my 455 class, you can't. You must store > the pixel colors > yourself. Put another way, you can't query the > screen to see what color a > pixel is. This is most likely because OpenGL > supports floats for pixel > coordintes. Ie, you can say glVertex2f(float x,float > y) to turn on a > pixel. For it to store all the different colors for > every possible float > value on your screen would be an enormous piece of > memory. > > It seems to be best to write a wrapper function to > OpenGL's pixel > illuminating function and store the pixel's > coordinates (use ints) and its > color (floats are okay). > > --Dave > > > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
