define an array of vertex data


glVertexPointer( GLint ( size ) , GLenum ( type ) , GLsizei ( stride ) , const GLvoid * ( pointer ) )-> void
glVertexPointer( size , type , stride , pointer )
glVertexPointerf( pointer )
glVertexPointeri( pointer )
glVertexPointers( pointer )


Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4.
Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT , GL_INT , GL_FLOAT , or GL_DOUBLE are accepted. The initial value is GL_FLOAT .
Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0.
Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

OpenGLContext tests/ Lines: 23
OpenGLContext tests/ Lines: 169
OpenGLContext tests/ Lines: 103
OpenGLContext tests/ Lines: 167
OpenGLContext tests/ Lines: 61
OpenGLContext tests/ Lines: 14
OpenGLContext OpenGLContext/ Lines: 34
OpenGLContext OpenGLContext/scenegraph/ Lines: 43
OpenGLContext OpenGLContext/scenegraph/ Lines: 49
OpenGLContext OpenGLContext/scenegraph/ Lines: 62, 125
OpenGL-Demo PyOpenGL-Demo/NeHe/ Lines: 432, 449
{GPL3} OpenGL-Programmable Lines: 188
{GPL3} OpenGL-Programmable Lines: 95
{GPL3} OpenGL-Programmable Lines: 180
{GPL3} OpenGL-Programmable Lines: 114