首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
glBuffers & glVertexPtrs
】的更多相关文章
glBuffers & glVertexPtrs
[glBuffers & glVertexPtrs] 1.glBuffers使得数据可以存储在显示存中. GLuint VBO; glGenBuffers(1, &VBO); glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(Vertices), Vertices, GL_STATIC_DRAW); 2.非shader环境里,glVertexPointer用来把数据告知给GL.在shader环境…