图像在第一帧后消失,iOS,OpenGL

发布于 2024-12-28 10:36:30 字数 128 浏览 2 评论 0原文

我编写了一个程序,应该在屏幕上渲染一个圆锥体。问题是,在第一帧中,我可以看到圆锥体在我的 iOS 模拟屏幕上正确显示;之后,圆锥体消失。当我设置断点时,所有数据对我来说似乎都没有问题。

我正在使用 OpenGL ES 1.0。

I wrote a program which should render a cone to the screen. The problem is that in the first frame I can see the cone displaying correctly on my iOS simulate screen; after that, the cone disappears. When I set a break point, all the data seems to be OK to me.

I am using OpenGL ES 1.0.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

月寒剑心 2025-01-04 10:36:30

确实,您应该向我们展示一些代码...但无论如何,我遇到了同样的问题,在我的例子中,错误是我在调用glEnableClientState(...)初始化阶段,而glDisableClientState(...)在每一帧(每次Render()调用)。

It is true that you should show us some code... But for all it's worth, I had the same problem and in my case the error was that I was calling theglEnableClientState(...)at the initialisation stage while theglDisableClientState(...)at every frame (everyRender() call).

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