首页 > 其他 > 详细

VBO, VAO, Generic Vertex Attribute

时间:2015-09-08 20:11:29      阅读:235      评论:0      收藏:0      [点我收藏+]

VBO - 用于存储顶点数据的Buffer Object。

VAO - 用于组织VBO的对象。

Generic Vertex Attribute - 通用顶点属性。

 

For example, the VertexAttribPointer command copies the value of ARRAY_BUFFER_BINDING (the queriable name of the buffer binding corresponding to the target ARRAY_BUFFER) to the client state variable VERTEX_ATTRIB_ARRAY_BUFFER_BINDING for the specified index. 

VertexAttribPointer命令将ARRAY_BUFFER_BINDING的值(ARRAY_BUFFER挂节点上绑定的Buffer的句柄)拷贝到客户端状态中制定索引对应的变量VERTEX_ATTRIB_ARRAY_BUFFER_BINDING中。

 

The command

int GetAttribLocation( uint program, const char *name );

returns the generic attribute index that the attribute variable named name was bound to when the program object named program was last linked. 

 

GetAttribLocation返回通用属性的索引。

 

 

VBO, VAO, Generic Vertex Attribute

原文:http://www.cnblogs.com/lilei9110/p/4792646.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!