OpenGL.GL.glget | index /var/pylive/src/OpenGL-dev/OpenGL-ctypes/OpenGL/GL/glget.py

`Implementation of the special "glGet" functions
For comparison, here's what a straightforward implementation looks like:
def glGetDoublev( pname ):
"Natural writing of glGetDoublev using standard ctypes"
output = c_double*sizes.get( pname )
result = output()
result = platform.OpenGL.glGetDoublev( pname, byref(result) )
return Numeric.array( result )`

Modules
`` |  |
OpenGL.arrays OpenGL.converters | ctypes OpenGL.error | OpenGL.platform OpenGL.raw.GL | OpenGL.wrapper

Functions
> `` |  | GL_GET_PIXEL_MAP_SIZE(pname) `Given a pname, lookup the size using a glGet query...` addGLGetConstant(constant, arraySize) `Add a glGet* constant to return an output array of correct size` glGetIntegerv( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1938> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetIntegerv( GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetIntegerv( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1938> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetIntegerv( GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetDoublev( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1848> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetDoublev( GLenum(pname), arrays.GLdoubleArray(params) ) -> None
> glGetDoublev( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1848> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetDoublev( GLenum(pname), arrays.GLdoubleArray(params) ) -> None
> glGetFloatv( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e18c0> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetFloatv( GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetFloatv( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e18c0> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetFloatv( GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetIntegerv( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1938> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetIntegerv( GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetIntegerv( pname ) pyConverters: pname=None cConverters: pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1938> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetIntegerv( GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetLightfv( light,pname ) pyConverters: light=None, pname=None cConverters: light=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e19b0> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetLightfv( GLenum(light), GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetLightiv( light,pname ) pyConverters: light=None, pname=None cConverters: light=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1a28> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetLightiv( GLenum(light), GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetMaterialfv( face,pname ) pyConverters: face=None, pname=None cConverters: face=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1aa0> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetMaterialfv( GLenum(face), GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetMaterialiv( face,pname ) pyConverters: face=None, pname=None cConverters: face=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1b18> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetMaterialiv( GLenum(face), GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetPixelMapfv( map ) pyConverters: map=None cConverters: map=None, values=<OpenGL.converters.SizedOutput object at 0x2aaab28e1c08> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetPixelMapfv( GLenum(map), arrays.GLfloatArray(values) ) -> None
> glGetPixelMapuiv( map ) pyConverters: map=None cConverters: map=None, values=<OpenGL.converters.SizedOutput object at 0x2aaab28e1c80> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetPixelMapuiv( GLenum(map), arrays.GLuintArray(values) ) -> None
> glGetPixelMapusv( map ) pyConverters: map=None cConverters: map=None, values=<OpenGL.converters.SizedOutput object at 0x2aaab28e1cf8> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetPixelMapusv( GLenum(map), arrays.GLushortArray(values) ) -> None
> glGetPolygonStipple( ) pyConverters: cConverters: mask=<OpenGL.converters.Output object at 0x2aaab2927260> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of Output instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetPolygonStipple( arrays.GLubyteArray(mask) ) -> None
> glGetPolygonStipple( ) pyConverters: cConverters: mask=<OpenGL.converters.Output object at 0x2aaab2927260> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of Output instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetPolygonStipple( arrays.GLubyteArray(mask) ) -> None
> glGetString(...) `glGetString( constant ) -> Current string value` glGetTexEnvfv( target,pname ) pyConverters: target=None, pname=None cConverters: target=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1d70> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexEnvfv( GLenum(target), GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetTexEnviv( target,pname ) pyConverters: target=None, pname=None cConverters: target=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1de8> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexEnviv( GLenum(target), GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetTexGendv( coord,pname ) pyConverters: coord=None, pname=None cConverters: coord=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1e60> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexGendv( GLenum(coord), GLenum(pname), arrays.GLdoubleArray(params) ) -> None
> glGetTexGenfv( coord,pname ) pyConverters: coord=None, pname=None cConverters: coord=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1ed8> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexGenfv( GLenum(coord), GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetTexGeniv( coord,pname ) pyConverters: coord=None, pname=None cConverters: coord=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab28e1f50> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexGeniv( GLenum(coord), GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetTexLevelParameterfv( target,level,pname ) pyConverters: target=None, level=None, pname=None cConverters: target=None, level=None, pname=None, params=<OpenGL.converters.Output object at 0x2aaab2927680> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of Output instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexLevelParameterfv( GLenum(target), GLint(level), GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetTexLevelParameteriv( target,level,pname ) pyConverters: target=None, level=None, pname=None cConverters: target=None, level=None, pname=None, params=<OpenGL.converters.Output object at 0x2aaab2927730> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of Output instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexLevelParameteriv( GLenum(target), GLint(level), GLenum(pname), arrays.GLintArray(params) ) -> None
> glGetTexLevelParameterfv( target,level,pname ) pyConverters: target=None, level=None, pname=None cConverters: target=None, level=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab2929050> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexLevelParameterfv( GLenum(target), GLint(level), GLenum(pname), arrays.GLfloatArray(params) ) -> None
> glGetTexLevelParameteriv( target,level,pname ) pyConverters: target=None, level=None, pname=None cConverters: target=None, level=None, pname=None, params=<OpenGL.converters.SizedOutput object at 0x2aaab29290c8> cResolvers: Not Used storeValues: Not Used returnValues: oldStyleReturn(self, result, baseOperation, pyArgs, cArgs) method of SizedOutput instance `Retrieve cArgs[ self.index ]`
>     Wrapping Operation: glGetTexLevelParameteriv( GLenum(target), GLint(level), GLenum(pname), arrays.GLintArray(params) ) -> None

Data
`` |  | GL_GET_LIGHT_SIZES = {GL_AMBIENT: (4,), GL_DIFFUSE: (4,), GL_SPECULAR: (4,), GL_POSITION: (4,), GL_SPOT_DIRECTION: (3,), GL_SPOT_EXPONENT: (1,), GL_SPOT_CUTOFF: (1,), GL_CONSTANT_ATTENUATION: (1,), GL_LINEAR_ATTENUATION: (1,), GL_QUADRATIC_ATTENUATION: (1,)} GL_GET_MATERIAL_SIZES = {GL_AMBIENT: (4,), GL_DIFFUSE: (4,), GL_SPECULAR: (4,), GL_EMISSION: (4,), GL_SHININESS: (1,), GL_COLOR_INDEXES: (3,)} GL_GET_SIZES = {GL_CURRENT_COLOR: (4,), GL_CURRENT_INDEX: (1,), GL_CURRENT_NORMAL: (3,), GL_CURRENT_TEXTURE_COORDS: (4,), GL_CURRENT_RASTER_COLOR: (4,), GL_CURRENT_RASTER_INDEX: (1,), GL_CURRENT_RASTER_TEXTURE_COORDS: (4,), GL_CURRENT_RASTER_POSITION: (4,), GL_CURRENT_RASTER_POSITION_VALID: (1,), GL_CURRENT_RASTER_DISTANCE: (1,), ...} GL_GET_TEX_ENV_SIZES = {GL_TEXTURE_ENV_MODE: (1,), GL_TEXTURE_ENV_COLOR: (4,)} GL_GET_TEX_GEN_SIZES = {GL_TEXTURE_GEN_MODE: (1,), GL_OBJECT_PLANE: (4,), GL_EYE_PLANE: (4,)} PIXEL_MAP_SIZE_CONSTANT_MAP = {GL_PIXEL_MAP_I_TO_I: GL_PIXEL_MAP_I_TO_I_SIZE, GL_PIXEL_MAP_S_TO_S: GL_PIXEL_MAP_S_TO_S_SIZE, GL_PIXEL_MAP_I_TO_R: GL_PIXEL_MAP_I_TO_R_SIZE, GL_PIXEL_MAP_I_TO_G: GL_PIXEL_MAP_I_TO_G_SIZE, GL_PIXEL_MAP_I_TO_B: GL_PIXEL_MAP_I_TO_B_SIZE, GL_PIXEL_MAP_I_TO_A: GL_PIXEL_MAP_I_TO_A_SIZE, GL_PIXEL_MAP_R_TO_R: GL_PIXEL_MAP_R_TO_R_SIZE, GL_PIXEL_MAP_G_TO_G: GL_PIXEL_MAP_G_TO_G_SIZE, GL_PIXEL_MAP_B_TO_B: GL_PIXEL_MAP_B_TO_B_SIZE, GL_PIXEL_MAP_A_TO_A: GL_PIXEL_MAP_A_TO_A_SIZE} POLYGON_STIPPLE_SIZE = (128,) TEX_PARAMETER_SIZES = {GL_TEXTURE_BORDER_COLOR: (4,), GL_TEXTURE_MAG_FILTER: (1,), GL_TEXTURE_MIN_FILTER: (1,), GL_TEXTURE_WRAP_S: (1,), GL_TEXTURE_WRAP_T: (1,), GL_TEXTURE_PRIORITY: (1,), GL_TEXTURE_RESIDENT: (1,), GL_TEXTURE_WRAP_R: (1,), GL_TEXTURE_MIN_LOD: (1,), GL_TEXTURE_MAX_LOD: (1,), ...} __all__ = ('glGetBoolean', 'glGetBooleanv', 'glGetInteger', 'glGetIntegerv', 'glGetFloat', 'glGetFloatv', 'glGetDouble', 'glGetDoublev', 'glGetString', 'glGetLightfv', 'glGetLightiv', 'glGetMaterialfv', 'glGetMaterialiv', 'glGetPixelMapfv', 'glGetPixelMapusv', 'glGetPixelMapuiv', 'glGetPolygonStipple', 'glGetPolygonStippleub', 'glGetTexEnviv', 'glGetTexEnvfv', ...)