parameters: (program_name, shader_name, shader)
return_statement: return True
docstring: Print OpenGL compilation errors, if any, for a given shader.
      
      program_name and shader_name are arbitrary human readable strings.
      shader is an int (an OpenGL shader name)
docstring_summary: Print OpenGL compilation errors, if any, for a given shader.
      
      program_name and shader_name are arbitrary human readable strings.
      shader is an int (an OpenGL shader name)
docstring_tokens: Print OpenGL compilation errors if any for a given shader . program_name and shader_name are arbitrary human readable strings . shader is an int ( an OpenGL shader name )
function: def gl_compile_error(program_name, shader_name, shader):
      """
      Print OpenGL compilation errors, if any, for a given shader.
      
      program_name and shader_name are arbitrary human readable strings.
      shader is an int (an OpenGL shader name)
      """
      buf = bgl.Buffer(bgl.GL_INT,1)
      bgl.glGetShaderiv(shader,bgl.GL_COMPILE_STATUS,buf)
      if buf[0] == bgl.GL_TRUE:
          return False
      err = buf[0]
      charbuf = bgl.Buffer(bgl.GL_BYTE,4000)
      lenbuf = bgl.Buffer(bgl.GL_INT,1)
      bgl.glGetShaderInfoLog(shader,4000,lenbuf,charbuf)
      print('GL Error: %d (%s:%s)\n%s'%(err, program_name, shader_name, "".join(map( chr, charbuf[:lenbuf[0]]))))
      return True
function_tokens: def gl_compile_error ( program_name , shader_name , shader ) : buf = bgl . Buffer ( bgl . GL_INT , 1 ) bgl . glGetShaderiv ( shader , bgl . GL_COMPILE_STATUS , buf ) if buf [ 0 ] == bgl . GL_TRUE : return False err = buf [ 0 ] charbuf = bgl . Buffer ( bgl . GL_BYTE , 4000 ) lenbuf = bgl . Buffer ( bgl . GL_INT , 1 ) bgl . glGetShaderInfoLog ( shader , 4000 , lenbuf , charbuf ) print ( 'GL Error: %d (%s:%s)\n%s' % ( err , program_name , shader_name , "" . join ( map ( chr , charbuf [ : lenbuf [ 0 ] ] ) ) ) ) return True