Android的OpenGL的绘制调用后修改顶点数组数组、顶点、Android、OpenGL

2023-09-06 14:12:03 作者:勾伱沒商量

在OpenGL中,它是不好的做法,还是不建议修改顶点数组我画后?

In opengl, is it bad practice or not recommended to modify the vertex array after I have drawn it?

推荐答案

它的不可以坏习惯,如果你修改了顶点数组当你画它作为普通的顶点数组。

It's not bad practice if you modify the vertex array when you draw it as ordinary vertex array.

这是不好的做法,如果你在你的绘制方法使用顶点缓冲对象来修改顶点数组。那是因为你一旦编辑将它重新上传到你的VRAM。

It's bad practice to modify the vertex array if you use vertex buffer objects in your draw method. That's because you have to reupload it to your VRAM once it is edited.

 
精彩推荐
图片推荐