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這些頂點數組命令時,這些頂點屬性數組將被訪問和用來渲染。