OpenGL ES VertexArray 且无法在 Android 上正确绘制

发布于 2024-12-28 10:56:54 字数 317 浏览 2 评论 0原文

我正在使用 OpenGL ES 1 和“BufferPool”制作一个小游戏演示,它本质上只是一个直接 ByteBuffer 的奇特接口,我在其中存储所有顶点、颜色和纹理坐标数据。使其正确绘制的问题。我一定是把 opengl 状态设置错了,但我对 OpenGL 还很陌生,不知道它是什么。我非常感谢任何帮助:)

代码: http://pastebin.com/bw3eM0TW

我已经把它放了在 Pastebin 上,因为有大量与 BufferPool 和渲染相关的代码。

I'm working on a little game demo using OpenGL ES 1 and using a "BufferPool", which essentially is just a fancy interface for a direct ByteBuffer which I store all the vertex, color, and texcoord data in. I'm having some issues getting it to draw properly. I must be setting up the opengl state wrong, but I'm fairly new to OpenGL and can't tell what it is. I'd appreciate any help muchly :)

code: http://pastebin.com/bw3eM0TW

I've put it up on pastebin as there's a fair amount of code related to the BufferPool and rendering.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文