Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glvertexattribdivisor(3g) [centos man page]

GLVERTEXATTRIBDIVISO(3G)					   OpenGL Manual					  GLVERTEXATTRIBDIVISO(3G)

NAME
glVertexAttribDivisor - modify the rate at which generic vertex attributes advance during instanced rendering C SPECIFICATION
void glVertexAttribDivisor(GLuint index, GLuint divisor); PARAMETERS
index Specify the index of the generic vertex attribute. divisor Specify the number of instances that will pass between updates of the generic attribute at slot index. DESCRIPTION
glVertexAttribDivisor modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. If divisor is zero, the attribute at slot index advances once per vertex. If divisor is non-zero, the attribute advances once per divisor instances of the set(s) of vertices being rendered. An attribute is referred to as instanced if its GL_VERTEX_ATTRIB_ARRAY_DIVISOR value is non-zero. index must be less than the value of GL_MAX_VERTEX_ATTRIBUTES. NOTES
glVertexAttribDivisor is available only if the GL version is 3.3 or higher. ERRORS
GL_INVALID_VALUE is generated if index is greater than or equal to the value of GL_MAX_VERTEX_ATTRIBUTES. SEE ALSO
glVertexAttribPointer(), glEnableVertexAttribArray(), glDisableVertexAttribArray() COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. AUTHORS
opengl.org opengl.org 06/10/2014 GLVERTEXATTRIBDIVISO(3G)

Check Out this Related Man Page

GLENABLEVERTEXATTRIB(3G)					   OpenGL Manual					  GLENABLEVERTEXATTRIB(3G)

NAME
glEnableVertexAttribArray, glDisableVertexAttribArray - Enable or disable a generic vertex attribute array C SPECIFICATION
void glEnableVertexAttribArray(GLuint index); void glDisableVertexAttribArray(GLuint index); PARAMETERS
index Specifies the index of the generic vertex attribute to be enabled or disabled. DESCRIPTION
glEnableVertexAttribArray enables the generic vertex attribute array specified by index. glDisableVertexAttribArray disables the generic vertex attribute array specified by index. By default, all client-side capabilities are disabled, including all generic vertex attribute arrays. If enabled, the values in the generic vertex attribute array will be accessed and used for rendering when calls are made to vertex array commands such as glDrawArrays(), glDrawElements(), glDrawRangeElements(), glMultiDrawElements(), or glMultiDrawArrays(). ERRORS
GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX_ATTRIBS. ASSOCIATED GETS
glGet() with argument GL_MAX_VERTEX_ATTRIBS glGetVertexAttrib() with arguments index and GL_VERTEX_ATTRIB_ARRAY_ENABLED glGetVertexAttribPointerv() with arguments index and GL_VERTEX_ATTRIB_ARRAY_POINTER SEE ALSO
glBindAttribLocation(), glDrawArrays(), glDrawElements(), glDrawRangeElements(), glMultiDrawElements(), glVertexAttrib(), glVertexAttribPointer() COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. AUTHORS
opengl.org opengl.org 06/10/2014 GLENABLEVERTEXATTRIB(3G)
Man Page