kmr
kmr

Reputation:

What is the equivalent of glDrawPixels() in OpenGL ES 1.1?

Can anyone tell me the equivalent of glDrawPixels() in OpenGL ES 1.1?

Upvotes: 2

Views: 3857

Answers (2)

lhunath
lhunath

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

dendryte
dendryte

Reputation: 221

You're forced to use a texture.

Upvotes: 4

Related Questions