code: def query(self, *, samples=False, any_samples=False, time=False, primitives=False) -> 'Query':
          '''
              Create a :py:class:`Query` object.
  
              Keyword Args:
                  samples (bool): Query ``GL_SAMPLES_PASSED`` or not.
                  any_samples (bool): Query ``GL_ANY_SAMPLES_PASSED`` or not.
                  time (bool): Query ``GL_TIME_ELAPSED`` or not.
                  primitives (bool): Query ``GL_PRIMITIVES_GENERATED`` or not.
          '''
  
          res = Query.__new__(Query)
          res.mglo = self.mglo.query(samples, any_samples, time, primitives)
          res.crender = None
  
          if samples or any_samples:
              res.crender = ConditionalRender.__new__(ConditionalRender)
              res.crender.mglo = res.mglo
  
          res.ctx = self
          res.extra = None
          return ref query(self, *, samples=False, any_samples=False, time=False, primitives=False) -> 'Query':
          '''
              Create a :py:class:`Query` object.
  
              Keyword Args:
                  samples (bool): Query ``GL_SAMPLES_PASSED`` or not.
                  any_samples (bool): Query ``GL_ANY_SAMPLES_PASSED`` or not.
                  time (bool): Query ``GL_TIME_ELAPSED`` or not.
                  primitives (bool): Query ``GL_PRIMITIVES_GENERATED`` or not.
          '''
  
          res = Query.__new__(Query)
          res.mglo = self.mglo.query(samples, any_samples, time, primitives)
          res.crender = None
  
          if samples or any_samples:
              res.crender = ConditionalRender.__new__(ConditionalRender)
              res.crender.mglo = res.mglo
  
          res.ctx = self
          res.extra = None
          return res
docs: Create a :py:class:`Query` object.
  
              Keyword Args:
                  samples (bool): Query ``GL_SAMPLES_PASSED`` or not.
                  any_samples (bool): Query ``GL_ANY_SAMPLES_PASSED`` or not.
                  time (bool): Query ``GL_TIME_ELAPSED`` or not.
                  primitives (bool): Query ``GL_PRIMITIVES_GENERATED`` or not.