PDA

View Full Version : Drawing the content of an array on the screen



Feredi
12-04-2010, 09:26 AM
Hi everyone,

I have a 2 dimension array which include the (x,y) which is the coordinate of shape (each cell of array have a color of the point). For example: double image[600][800]
Now I want to put these pixels on the screen by opengl command.but I don't have any idea how to do this.
Is there anybody who be able to help me?

aqnuep
12-04-2010, 09:49 AM
You can do it simply with legacy OpenGL using the glDrawPixels command: http://www.opengl.org/sdk/docs/man/xhtml/glDrawPixels.xml