Can anyone tell me the equivalent of glDrawPixels()
in OpenGL ES 1.1?
views:
1131answers:
2
+1
A:
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)
lhunath
2009-04-02 08:43:02
This sounds like a horrible solution. Using a texture must be better in almost all ways.
unwind
2009-04-02 09:25:07
@unwind: If you're just drawing pixels/points, it's fine. If you're trying to dump a whole buffer/image using GL_POINTS; it's obviously not suited and a texture is what you need. OP didn't specify, so I don;t think the -1 is appropriate.
lhunath
2009-04-02 10:33:37