class_docstr: Generator for the gl2 (desktop) backend.
class_docstr_tok: ["Generator","for","the","gl2","(","desktop",")","backend","."]
code: def _native_call_line(
      self, name, es2func, cargstr=None, prefix="", indent=4
  ):
      resstr, argstr = self._get_argtype_str(es2func)
      if cargstr is None:
          cargs = [arg.name for arg in es2func.args[1:]]
          cargstr = ", ".join(cargs)
  
      lines = "try:\n"
      lines += "    nativefunc = %s._native\n" % apiname(name)
      lines += "except AttributeError:\n"
      lines += (
          '    nativefunc = %s._native = _get_gl_func("%s", %s, %s)\n'
          % (
              apiname(name),
              es2func.glname,
              resstr,
              argstr,
          )
      )
      lines += "%snativefunc(%s)\n" % (prefix, cargstr)
      lines = [" " * indent + line for line in lines.splitlines()]
      return "\n".join(lines)
  
imports: from __future__ import annotations
  import os
  import sys
  import headerparser
  from annotations import parse_anotations
  from OpenGL import GL
label_desc: Use image node_id 3 for calling the Gl2ApiGenerator obj's underlying member method code with example usage: obj._native_call_line(name, es2func, cargstr, prefix, indent) and returns: str