'\" t .\" Title: glEnableVertexAttribArray .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 05/30/2012 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLENABLEVERTEXATTRIB" "3G" "05/30/2012" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glEnableVertexAttribArray, glDisableVertexAttribArray \- Enable or disable a generic vertex attribute array .SH "C SPECIFICATION" .HP \w'void\ glEnableVertexAttribArray('u .BI "void glEnableVertexAttribArray(GLuint\ " "index" ");" .HP \w'void\ glDisableVertexAttribArray('u .BI "void glDisableVertexAttribArray(GLuint\ " "index" ");" .SH "PARAMETERS" .PP \fIindex\fR .RS 4 Specifies the index of the generic vertex attribute to be enabled or disabled\&. .RE .SH "DESCRIPTION" .PP \fBglEnableVertexAttribArray\fR enables the generic vertex attribute array specified by \fIindex\fR\&. \fBglDisableVertexAttribArray\fR disables the generic vertex attribute array specified by \fIindex\fR\&. 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 \fBglDrawArrays\fR(), \fBglDrawElements\fR(), \fBglDrawRangeElements\fR(), \fBglMultiDrawElements\fR(), or \fBglMultiDrawArrays\fR()\&. .SH "ERRORS" .PP \fBGL_INVALID_VALUE\fR is generated if \fIindex\fR is greater than or equal to \fBGL_MAX_VERTEX_ATTRIBS\fR\&. .SH "ASSOCIATED GETS" .PP \fBglGet\fR() with argument \fBGL_MAX_VERTEX_ATTRIBS\fR .PP \fBglGetVertexAttrib\fR() with arguments \fIindex\fR and \fBGL_VERTEX_ATTRIB_ARRAY_ENABLED\fR .PP \fBglGetVertexAttribPointerv\fR() with arguments \fIindex\fR and \fBGL_VERTEX_ATTRIB_ARRAY_POINTER\fR .SH "SEE ALSO" .PP \fBglBindAttribLocation\fR(), \fBglDrawArrays\fR(), \fBglDrawElements\fR(), \fBglDrawRangeElements\fR(), \fBglMultiDrawElements\fR(), \fBglVertexAttrib\fR(), \fBglVertexAttribPointer\fR() .SH "COPYRIGHT" .PP Copyright \(co 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\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&.