class_docstr: Class that provides a series of GL functions that do not fit
  in the object oriented part of gloo. An instance of this class is
  associated with each canvas.
docstr: Flush GL commands
  
  This is a wrapper for glFlush(). This also flushes the GLIR
  command queue.
docstr_tok: ["Flush","GL","commands","This","is","a","wrapper","for","glFlush","(",")",".","This","also","flushes","the","GLIR","command","queue","."]
code: def flush(self):
      """Flush GL commands
  
      This is a wrapper for glFlush(). This also flushes the GLIR
      command queue.
      """
      if hasattr(self, "flush_commands"):
          context = self
      else:
          context = get_current_canvas().context
      context.glir.command("FUNC", "glFlush")
      context.flush_commands()
  
imports: import numpy
  from copy import deepcopy
  from .None import gl
  from ..color import Color
  from ..util import logger
label_desc: Use image node_id 25 for calling the BaseGlooFunctions obj's underlying member method code with example usage: obj.flush() without return types