有没有办法直接在iPhone上渲染像素?

发布于 2024-12-13 09:01:40 字数 126 浏览 2 评论 0原文

我想移植一个我制作的游戏,它使屏幕本身呈现 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱已欠费 2024-12-20 09:01:40

在屏幕上获取像素的最快方法是通过 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.

哑剧 2024-12-20 09:01:40

如果我需要创建一个必须直接访问像素但无法直接访问硬件的应用程序,我会使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文