OpenGL.GL.pointers

Implementations for "held-pointers" of various types
This argument type is special because it is stored, that is, it needs to be cached on our side so that the memory address does not go out-of-scope
storedPointers = {} def glVertexPointerd( array ): "Natural writing of glVertexPointerd using standard ctypes" arg2 = GL_DOUBLE arg3 = 0 # stride arg4 = arrays.asArray(array, GL_DOUBLE) arg1 = arrays.arraySize( arg4, 'd' ) platform.PLATFORM.GL.glVertexPointer( arg1, arg2, arg3, arrays.ArrayDatatype.dataPointer(arg4) ) # only store if we successfully set the value... storedPointers[ GL_VERTEX_ARRAY ] = arg4 return arg4

Functions

glFeedbackBuffer( size , type , buffer = None )
Create a selection buffer of the given size
glGetPointerv( constant )
Retrieve a stored pointer constant
glRenderMode( newMode )
Change to the given rendering mode
If the current mode is GL_FEEDBACK or GL_SELECT, return the current buffer appropriate to the mode
glSelectBuffer( size , buffer = None )
Create a selection buffer of the given size

Constants

GL_INTERLEAVED_ARRAY_POINTER (-32910)