Reputation:
Can anyone tell me the equivalent of glDrawPixels()
in OpenGL ES 1.1?
Upvotes: 2
Views: 3857
Reputation: 125376
Put your pixel coordinates in a vertex array and draw it with GL_POINTS.
See http://gorillas.lyndir.com/trac/browser/Classes/SkyLayer.m (Gorillas code)
[edit] This solution is only useful if you're drawing dots on the screen. When I posted it, I had no clue what glDrawPixels() was and assumed drawing dots was the question.
Do not use this for drawing arbitrary pixel data ...
Upvotes: 0