API翻译:glEnableVertexAttribArray

来源:互联网 发布:sql 全连接 编辑:程序博客网 时间:2024/06/15 04:50

Name

glEnableVertexAttribArray
使能或禁止一个已生成的顶点属性数组。

C Specification

void glEnableVertexAttribArray( GLuint index);void glDisableVertexAttribArray(    GLuint index);

Parameters

index
指定一个将被使能或禁止的已生成的顶点属性数组的索引。

Description

glEnableVertexAttribArray enables the generic vertex attribute array specified by index. glDisableVertexAttribArray disables the generic vertex attribute array specified by index. 默认情况下,对所有客户端都是禁止状态,包括所有已生成的顶点属性数组。当使能时,如当调用 glDrawArrays or glDrawElements这些顶点数组命令时,这些顶点属性数组将被访问和用来渲染。