OpenGL ES VertexArray 且无法在 Android 上正确绘制
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论