有没有办法直接在iPhone上渲染像素?
我想移植一个我制作的游戏,它使屏幕本身呈现 50 fps(不使用 opengl)。
将其移植到 iPhone 的最佳方法是什么?
我正在阅读有关帧缓冲区对象的内容。这是将像素缓冲区高速渲染到屏幕的好方法吗?
I want to port a game I've made which renders the screen itself 50 fps (doesn't use opengl).
What is the best way to port this to the iPhone?
I was reading about Framebuffer Objects. Is this a good approach to render a buffer of pixels to the screen at high speeds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在屏幕上获取像素的最快方法是通过 OpenGL。
需要有关您的游戏当前如何渲染到屏幕的更多信息,但我不知道 FBO 将如何提供帮助,因为它们通常用于获取渲染缓冲区的副本,即用于创建屏幕记录,或在其上合成自定义纹理飞。
The fastest way to get pixels on the screen is via OpenGL.
Need more info about how your game currently renders to the screen, but I don't see how FBOs will help as they're usually used for getting a copy of the render buffer, i.e. for creating a screen recording, or compositing custom textures on fly.
如果我需要创建一个必须直接访问像素但无法直接访问硬件的应用程序,我会使用 SDL,因为它只需要您创建一个表面,然后您可以直接操作像素。据我所知,您可以在 Iphone 上使用 SDL,甚至还可以使用 opengl 加速它
If i ever need to create an app where I have to access the pixels directly and dont have direct access to the hardware I use SDL as it just requires you to create a surface and from there you can manipulate the pixels directly. and as far as im aware you can use SDL on the Iphone, maybe even accelerate it using opengl too