original_docstring: Parses the cmd_buffer_functions.txt file and extracts the functions
docstring: Parses the cmd_buffer_functions.txt file and extracts the functions
docstring_tokens: Parses the cmd_buffer_functions . txt file and extracts the functions
code: def ParseGLH(self, filename):
      """Parses the cmd_buffer_functions.txt file and extracts the functions"""
      f = open(filename, "r")
      functions = f.read()
      f.close()
      for line in functions.splitlines():
        match = self._function_re.match(line)
        if match:
          func_name = match.group(2)[2:]
          func_info = self.GetFunctionInfo(func_name)
          if func_info['type'] == 'Noop':
            continue
  
          parsed_func_info = {
            'original_name': func_name,
            'original_args': match.group(3),
            'return_type': match.group(1).strip(),
          }
  
          for k in parsed_func_info.keys():
            if not k in func_info:
              func_info[k] = parsed_func_info[k]
  
          f = Function(func_name, func_info)
          self.original_functions.append(f)
  
          #for arg in f.GetOriginalArgs():
          #  if not isinstance(arg, EnumArgument) and arg.type == 'GLenum':
          #    self.Log("%s uses bare GLenum %s." % (func_name, arg.name))
  
          gen_cmd = f.GetInfo('gen_cmd')
          if gen_cmd == True or gen_cmd == None:
            if f.type_handler.NeedsDataTransferFunction(f):
              methods = f.GetDataTransferMethods()
              if 'immediate' in methods:
                self.AddFunction(ImmediateFunction(f))
              if 'bucket' in methods:
                self.AddFunction(BucketFunction(f))
              if 'shm' in methods:
                self.AddFunction(f)
            else:
              self.AddFunction(f)
  
      self.Log("Auto Generated Functions    : %d" %
               len([f for f in self.functions if f.can_auto_generate or
                    (not f.IsType('') and not f.IsType('Custom') and
                     not f.IsType('Todo'))]))
  
      funcs = [f for f in self.functions if not f.can_auto_generate and
               (f.IsType('') or f.IsType('Custom') or f.IsType('Todo'))]
      self.Log("Non Auto Generated Functions: %d" % len(funcs))
  
      for f in funcs:
        self.Log("  %-10s %-20s gl%s" % (f.info['type'], f.return_type, f.name))
code_tokens: def ParseGLH ( self , filename ) : f = open ( filename , "r" ) functions = f . read ( ) f . close ( ) for line in functions . splitlines ( ) : match = self . _function_re . match ( line ) if match : func_name = match . group ( 2 ) [ 2 : ] func_info = self . GetFunctionInfo ( func_name ) if func_info [ 'type' ] == 'Noop' : continue parsed_func_info = { 'original_name' : func_name , 'original_args' : match . group ( 3 ) , 'return_type' : match . group ( 1 ) . strip ( ) , } for k in parsed_func_info . keys ( ) : if not k in func_info : func_info [ k ] = parsed_func_info [ k ] f = Function ( func_name , func_info ) self . original_functions . append ( f ) gen_cmd = f . GetInfo ( 'gen_cmd' ) if gen_cmd == True or gen_cmd == None : if f . type_handler . NeedsDataTransferFunction ( f ) : methods = f . GetDataTransferMethods ( ) if 'immediate' in methods : self . AddFunction ( ImmediateFunction ( f ) ) if 'bucket' in methods : self . AddFunction ( BucketFunction ( f ) ) if 'shm' in methods : self . AddFunction ( f ) else : self . AddFunction ( f ) self . Log ( "Auto Generated Functions    : %d" % len ( [ f for f in self . functions if f . can_auto_generate or ( not f . IsType ( '' ) and not f . IsType ( 'Custom' ) and not f . IsType ( 'Todo' ) ) ] ) ) funcs = [ f for f in self . functions if not f . can_auto_generate and ( f . IsType ( '' ) or f . IsType ( 'Custom' ) or f . IsType ( 'Todo' ) ) ] self . Log ( "Non Auto Generated Functions: %d" % len ( funcs ) ) for f in funcs : self . Log ( "  %-10s %-20s gl%s" % ( f . info [ 'type' ] , f . return_type , f . name ) )
short_docstring: Parses the cmd_buffer_functions.txt file and extracts the functions
short_docstring_tokens: Parses the cmd_buffer_functions . txt file and extracts the functions
comment: """Parses the cmd_buffer_functions.txt file and extracts the functions"""$SEP$#for arg in f.GetOriginalArgs():$SEP$#  if not isinstance(arg, EnumArgument) and arg.type == 'GLenum':$SEP$#    self.Log("%s uses bare GLenum %s." % (func_name, arg.name))