def _inject():
 NS = globals()
 GLNS = _GL.__dict__
 used_names = []
 used_names.extend([names[0] for names in _pyopengl2._functions_to_import])
 used_names.extend([name for name in _pyopengl2._used_functions])
 NS['_used_names'] = used_names
 used_constants = set(_constants.__dict__)
 injected_constants = 0
 injected_functions = 0
 for name in dir(_GL):
  if name.startswith('GL_'):
   if (name not in used_constants):
    NS[name] = GLNS[name]
    injected_constants += 1
  elif name.startswith('gl'):
   if ((name + ',') in _deprecated_functions):
    pass
   elif (name in used_names):
    pass
   else:
    NS[name] = GLNS[name]
    injected_functions += 1

def _inject ( ) : NS = globals ( ) GLNS = _GL . __dict__ used_names = [ ] used_names . extend ( [ names [ 0 ] for names in _pyopengl2 . _functions_to_import ] ) used_names . extend ( [ name for name in _pyopengl2 . _used_functions ] ) NS [ '_used_names' ] = used_names used_constants = set ( _constants . __dict__ ) injected_constants = 0 injected_functions = 0 for name in dir ( _GL ) : if name . startswith ( 'GL_' ) : if ( name not in used_constants ) : NS [ name ] = GLNS [ name ] injected_constants += 1 elif name . startswith ( 'gl' ) : if ( ( name + ',' ) in _deprecated_functions ) : pass elif ( name in used_names ) : pass else : NS [ name ] = GLNS [ name ] injected_functions += 1
copy functions from opengl .