Package VisionEgg :: Module GLTrace
[frames] | no frames]

Module GLTrace

source code


Trace calls to OpenGL

With this module, you can trace all calls made to OpenGL through PyOpenGL.
To do this, substitute

import OpenGL.GL as gl

with

import VisionEgg.GLTrace as gl

in your code.

Also, trace another module's use of OpenGL by changing its reference
to OpenGL.GL to a reference to VisionEgg.GLTrace.



Classes
  Wrapper
Functions
 
arg_to_str(arg) source code
 
gl_trace_attach() source code
Variables
  gl_constants = {}
  raw_args_by_function = {'glColor': [0, 1, 2, 3], 'glColorf': [...
  bitmasks_by_function = {'glClear': [0],}
  bitmask_names_by_value = {gl.GL_COLOR_BUFFER_BIT: 'GL_COLOR_BU...
Variables Details

raw_args_by_function

Value:
{'glColor': [0, 1, 2, 3], 'glColorf': [0, 1, 2, 3], 'glDepthRange': [0\
, 1], 'glGenTextures': [0], 'glGetTexLevelParameteriv': [1], 'glOrtho'\
: [0, 1, 2, 3, 4, 5], 'glPixelStorei': [1], 'glReadPixels': [0, 1, 2, \
3], 'glRotate': [0, 1, 2, 3], 'glTexCoord2f': [0, 1], 'glTexImage1D': \
[1, 3, 4], 'glTexImage2D': [1, 3, 4, 5], 'glTexSubImage1D': [1, 2, 3],\
 'glTranslate': [0, 1, 2], 'glVertex2f': [0, 1], 'glVertex3f': [0, 1, \
2], 'glViewport': [0, 1, 2, 3],}

bitmask_names_by_value

Value:
{gl.GL_COLOR_BUFFER_BIT: 'GL_COLOR_BUFFER_BIT', gl.GL_DEPTH_BUFFER_BIT\
: 'GL_DEPTH_BUFFER_BIT',}