View Full Version : how to display image with pixel information

kedar pawar
01-31-2005, 09:07 PM
hello there!

I want to display image ..i have pixel,color information(R,G,B),depth. so now i want to display each pixel with above information..
Currently i have this information in ASCII format.Please help me to dispaly image with proper pixel drawing in OpenGL.


02-01-2005, 05:32 AM
Parse your ascii information and put it in a buffer in a format supported by OpenGL and use glDrawPixels to display it.

If you need better performance you could put the image data in a texture and put it on a quad.