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

        self._qfbo = QOpenGLFramebufferObject(size, format)
        return self._qfbo
Exemple #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
    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
Exemple #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
Exemple #5
0
 def createFrameBuffer(self, width, height):
     buffer_format = QOpenGLFramebufferObjectFormat()
     buffer_format.setAttachment(QOpenGLFramebufferObject.Depth)
     return QOpenGLFramebufferObject(width, height, buffer_format)
 def createFrameBuffer(self, width, height):
     buffer_format = QOpenGLFramebufferObjectFormat()
     buffer_format.setAttachment(QOpenGLFramebufferObject.Depth)
     return QOpenGLFramebufferObject(width, height, buffer_format)
Exemple #7
0
 def createFrameBufferObject(self, size):
     f = QOpenGLFramebufferObjectFormat()
     f.setAttachment(QOpenGLFramebufferObject.CombinedDepthStencil)
     f.setSamples(4)
     return QOpenGLFramebufferObject(size, f)