original_docstring: Writes the GLES2 c lib implementation.
docstring: Writes the GLES2 c lib implementation.
docstring_tokens: Writes the GLES2 c lib implementation .
code: def WriteGLES2CLibImplementation(self, filename):
      """Writes the GLES2 c lib implementation."""
      file = CHeaderWriter(
          filename,
          "// These functions emulate GLES2 over command buffers.\n")
  
      for func in self.original_functions:
        func.WriteGLES2CLibImplementation(file)
  
      file.Write("""
  namespace gles2 {
  
  extern const NameToFunc g_gles2_function_table[] = {
  """)
      for func in self.original_functions:
        file.Write(
            '  { "gl%s", reinterpret_cast<GLES2FunctionPointer>(gl%s), },\n' %
            (func.name, func.name))
      file.Write("""  { NULL, NULL, },
  };
  
  }  // namespace gles2
  """)
      file.Close()
      self.generated_cpp_filenames.append(file.filename)
code_tokens: def WriteGLES2CLibImplementation ( self , filename ) : file = CHeaderWriter ( filename , "// These functions emulate GLES2 over command buffers.\n" ) for func in self . original_functions : func . WriteGLES2CLibImplementation ( file ) file . Write ( """
  namespace gles2 {
  
  extern const NameToFunc g_gles2_function_table[] = {
  """ ) for func in self . original_functions : file . Write ( '  { "gl%s", reinterpret_cast<GLES2FunctionPointer>(gl%s), },\n' % ( func . name , func . name ) ) file . Write ( """  { NULL, NULL, },
  };
  
  }  // namespace gles2
  """ ) file . Close ( ) self . generated_cpp_filenames . append ( file . filename )
short_docstring: Writes the GLES2 c lib implementation.
short_docstring_tokens: Writes the GLES2 c lib implementation .
comment: """Writes the GLES2 c lib implementation."""