gltbx.generate_functions_bpl
index
/net/chevy/raid1/nat/src/cctbx_project/gltbx/generate_functions_bpl.py

 
Modules
       
libtbx
os
sys

 
Classes
       
argument
signature

 
class argument
     Methods defined here:
__init__(self, function_name, string)

 
class signature
     Methods defined here:
__init__(self, string)
format_call(self, return_directly, prefix)
show(self, f=None)
wrapper_function_name(self)
write_def(self, f)
write_no_opaque_pointers_guard_endif(self, f)
write_no_opaque_pointers_guard_if(self, f)
write_version_guard_endif(self, f)
write_version_guard_if(self, f)
write_wrapper(self, f)

 
Functions
       
bytes_converters(signature, expected_size='0', post_extract='')
get_signatures()
glReadPixels_wrapper_body(signature)
run(target_dir)
write_function_wrappers(f, namespace, signatures, i_fragment)

 
Data
        arg_types = {'GLUnurbs*': 0, 'GLUquadric*': 0, 'GLUtesselator*': 0, 'GLbitfield': 0, 'GLboolean': 0, 'GLboolean*': 0, 'GLbyte': 0, 'GLclampd': 0, 'GLclampf': 0, 'GLdouble': 0, ...}
division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
opaque_pointers = ['GLUnurbs*', 'GLUquadric*', 'GLUtesselator*']
pointee_sizes = {'glAreTexturesResident residences': 0, 'glAreTexturesResident textures': 0, 'glBitmap bitmap': 0, 'glCallLists lists': '?n*sizeof(type)', 'glClipPlane equation': 4, 'glColor3bv v': 3, 'glColor3dv v': 3, 'glColor3fv v': 3, 'glColor3iv v': 3, 'glColor3sv v': 3, ...}
return_types = {'GLUnurbs*': 0, 'GLUquadric*': 0, 'GLUtesselator*': 0, 'GLboolean': 0, 'GLenum': 0, 'GLint': 0, 'GLuint': 0, 'const GLubyte*': 0}
special_wrapper_bodies = {'glCallLists': <function bytes_converters>, 'glDrawPixels': <function bytes_converters>, 'glGetTexImage': <function bytes_converters>, 'glReadPixels': <function glReadPixels_wrapper_body>, 'glTexImage1D': <function bytes_converters>, 'glTexImage2D': <function bytes_converters>, 'glTexSubImage1D': <function bytes_converters>, 'glTexSubImage2D': <function bytes_converters>}
special_wrappers = {'glGetString': [' boost::python::str\n gl_GetString(boost::pytho...ar*>(glGetString(name)));\n return result;\n }\n', None], 'gluErrorString': [' boost::python::str\n glu_ErrorString(boost::py...t_cast<const char*>(gluErrorString(error)));\n }\n', None], 'gluGetString': [' boost::python::str\n glu_GetString(boost::pyth...r*>(gluGetString(name)));\n return result;\n }\n', None]}
this = 'gltbx.generate_functions_bpl'
version_guards = {'glBlendColorEXT': 'GL_XXX', 'glEdgeFlagPointer': 'GLTBX_XXX', 'gluNurbsCallbackDataEXT': 'GL_XXX'}