Example #1
0
    def createFramebufferObject(self, size):
        format = QOpenGLFramebufferObjectFormat()
        format.setAttachment(QOpenGLFramebufferObject.CombinedDepthStencil)
        format.setSamples(4)

        self._qfbo = QOpenGLFramebufferObject(size, format)
        return self._qfbo
Example #2
0
    def __init__(self, width, height):
        super().__init__()

        buffer_format = QOpenGLFramebufferObjectFormat()
        buffer_format.setAttachment(QOpenGLFramebufferObject.Depth)
        self._fbo = QOpenGLFramebufferObject(width, height, buffer_format)

        self._contents = None
Example #3
0
    def __init__(self, width, height):
        super().__init__()

        buffer_format = QOpenGLFramebufferObjectFormat()
        buffer_format.setAttachment(QOpenGLFramebufferObject.Depth)
        self._fbo = QOpenGLFramebufferObject(width, height, buffer_format)

        self._contents = None
Example #4
0
 def createFramebufferObject(self, size):
     #print("\n\nLogoInFboRenderer.createFramebufferObject", size)#, QApplication.instance()
     format = QOpenGLFramebufferObjectFormat()
     format.setAttachment(QOpenGLFramebufferObject.CombinedDepthStencil)
     format.setSamples(4)
     self.frmBuffer = QOpenGLFramebufferObject(size, format)
     #print("hola3", self.frmBuffer)
     return self.frmBuffer
Example #5
0
 def createFrameBuffer(self, width, height):
     buffer_format = QOpenGLFramebufferObjectFormat()
     buffer_format.setAttachment(QOpenGLFramebufferObject.Depth)
     return QOpenGLFramebufferObject(width, height, buffer_format)
Example #6
0
 def createFrameBuffer(self, width, height):
     buffer_format = QOpenGLFramebufferObjectFormat()
     buffer_format.setAttachment(QOpenGLFramebufferObject.Depth)
     return QOpenGLFramebufferObject(width, height, buffer_format)
Example #7
0
 def createFrameBufferObject(self, size):
     f = QOpenGLFramebufferObjectFormat()
     f.setAttachment(QOpenGLFramebufferObject.CombinedDepthStencil)
     f.setSamples(4)
     return QOpenGLFramebufferObject(size, f)