Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest way to draw single pixels directly to the screen in an iPhone application?

I am looking the fastest way to draw thousands of individually calculated pixels directly to the screen in an iPhone application that preforms extremely well.

like image 441
Jamey McElveen Avatar asked Dec 23 '08 16:12

Jamey McElveen


2 Answers

Most probably using OpenGL, something like:

glBegin(GL_POINTS);
glColor3f(...);
glVertex3f(...);
...
glEnd();

Even faster would probably be to use vertex arrays for specifying the points.

like image 174
codelogic Avatar answered Nov 15 '22 04:11

codelogic


Why don't you use OpenGL views?

like image 27
mmx Avatar answered Nov 15 '22 05:11

mmx