在 iPhone 应用程序中直接在屏幕上绘制单个像素的最快方法是什么? [英] What is the fastest way to draw single pixels directly to the screen in an iPhone application?

查看:11
本文介绍了在 iPhone 应用程序中直接在屏幕上绘制单个像素的最快方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将数千个单独计算的像素直接绘制到运行良好的 iPhone 应用程序中的最快方法.

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.

推荐答案

很可能使用 OpenGL,类似:

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.

这篇关于在 iPhone 应用程序中直接在屏幕上绘制单个像素的最快方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆