class_docstr: Fake canvas to allow using gloo without vispy.app
  
  Instantiate this class to collect GLIR commands from gloo
  interactions. Call flush() in your draw event handler to execute
  the commands in the active contect.
class_docstr_tok: ["Fake","canvas","to","allow","using","gloo","without","vispy.app","Instantiate","this","class","to","collect","GLIR","commands","from","gloo","interactions",".","Call","flush","(",")","in","your","draw","event","handler","to","execute","the","commands","in","the","active","contect","."]
docstr: Flush commands. Call this after setting to context to current.
docstr_tok: ["Flush","commands",".","Call","this","after","setting","to","context","to","current","."]
code: def flush(self):
      """Flush commands. Call this after setting to context to current."""
      self.context.flush_commands()
  
imports: from copy import deepcopy
  import weakref
  from .glir import GlirQueue, BaseGlirParser, GlirParser, glir_logger
  from .wrappers import BaseGlooFunctions
  from ..None import config
label_desc: Use image node_id 2 for calling the FakeCanvas obj's underlying member method code with example usage: obj.flush() without return types