code: def detect_framebuffer(self, glo=None) -> 'Framebuffer':
          '''
              Detect framebuffer.
  
              Args:
                  glo (int): Framebuffer object.
  
              Returns:
                  :py:class:`Framebuffer` object
          '''
  
          res = Framebuffer.__new__(Framebuffer)
          res.mglo, res._size, res._samples, res._glo = self.mglo.detect_framebuffer(glo)
          res._color_attachments = None
          res._depth_attachment = None
          res.ctx = self
          res.extra = None
          return ref detect_framebuffer(self, glo=None) -> 'Framebuffer':
          '''
              Detect framebuffer.
  
              Args:
                  glo (int): Framebuffer object.
  
              Returns:
                  :py:class:`Framebuffer` object
          '''
  
          res = Framebuffer.__new__(Framebuffer)
          res.mglo, res._size, res._samples, res._glo = self.mglo.detect_framebuffer(glo)
          res._color_attachments = None
          res._depth_attachment = None
          res.ctx = self
          res.extra = None
          return res
docs: Detect framebuffer.
  
              Args:
                  glo (int): Framebuffer object.
  
              Returns:
                  :py:class:`Framebuffer` object