Android OpenGL 使用浮点数组而不是 FloatBuffer 作为属性
如何使用数组提供属性值?现在我正在使用 glVertexAttribPointer(maPosition, 3, GL_FLOAT, mVertBuffer) 我想使用包含 3 维点的 4 个坐标的数组 mVerts。
How can I feed an attribute value with an array? right now I am using glVertexAttribPointer(maPosition, 3, GL_FLOAT, mVertBuffer)
I want to use the array mVerts which contains 4 coordinates of 3 dimensional points.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Opengl.org 有以下说法:
这意味着你基本上必须这样做:
如果你不使用 GL_ARRAY_BUFFER ,你当然不必保存/加载
Opengl.org has the following to say:
This means that you basically have to do this:
you of course don't have to save/load if you don't use
GL_ARRAY_BUFFER