Skip to content

PythonQt.QtOpenGL.QGLFramebufferObjectFormat · declarations 001

Back to PythonQt.QtOpenGL.QGLFramebufferObjectFormat

attachment

attachment() -> Any

X.attachment()

Supplemental documentation: Qt 5 reference:

QGLFramebufferObject::Attachment QGLFramebufferObjectFormat::attachment() const

Returns the configuration of the depth and stencil buffers attached to a framebuffer object. The default is QGLFramebufferObject::NoAttachment.

See also setAttachment().

Upstream PySide2 reference signatures (binding differences may apply):

attachment(self) -> PySide2.QtOpenGL.QGLFramebufferObject.Attachment

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#attachment

internalTextureFormat

internalTextureFormat() -> int

X.internalTextureFormat() -> int

Supplemental documentation: Qt 5 reference:

GLenum QGLFramebufferObjectFormat::internalTextureFormat() const

Returns the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer. The default is GL_RGBA8 on desktop OpenGL systems, and GL_RGBA on OpenGL/ES systems.

See also setInternalTextureFormat().

Upstream PySide2 reference signatures (binding differences may apply):

internalTextureFormat(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#internalTextureFormat

mipmap

mipmap() -> bool

X.mipmap() -> bool

Supplemental documentation: Qt 5 reference:

bool QGLFramebufferObjectFormat::mipmap() const

Returns true if mipmapping is enabled.

This function was introduced in Qt 4.8.

See also setMipmap().

Upstream PySide2 reference signatures (binding differences may apply):

mipmap(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#mipmap

operator_assign

operator_assign(other: Any) -> Any

X.operator_assign(other) -> PythonQt.QtOpenGL.QGLFramebufferObjectFormat

samples

samples() -> int

X.samples() -> int

Supplemental documentation: Qt 5 reference:

int QGLFramebufferObjectFormat::samples() const

Returns the number of samples per pixel if a framebuffer object is a multisample framebuffer object. Otherwise, returns 0. The default value is 0.

See also setSamples().

Upstream PySide2 reference signatures (binding differences may apply):

samples(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#samples

setAttachment

setAttachment(attachment: Any) -> None

X.setAttachment(attachment)

Supplemental documentation: Qt 5 reference:

void QGLFramebufferObjectFormat::setAttachment(QGLFramebufferObject::Attachment attachment)

Sets the attachment configuration of a framebuffer object to attachment.

See also attachment().

Upstream PySide2 reference signatures (binding differences may apply):

setAttachment(self, attachment: PySide2.QtOpenGL.QGLFramebufferObject.Attachment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#setAttachment

setInternalTextureFormat

setInternalTextureFormat(internalTextureFormat: int) -> None

X.setInternalTextureFormat(internalTextureFormat)

Supplemental documentation: Qt 5 reference:

void QGLFramebufferObjectFormat::setInternalTextureFormat(GLenum internalTextureFormat)

Sets the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer to internalTextureFormat.

See also internalTextureFormat().

Upstream PySide2 reference signatures (binding differences may apply):

setInternalTextureFormat(self, internalTextureFormat: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#setInternalTextureFormat

setMipmap

setMipmap(enabled: bool) -> None

X.setMipmap(enabled)

Supplemental documentation: Qt 5 reference:

void QGLFramebufferObjectFormat::setMipmap(bool enabled)

Enables mipmapping if enabled is true; otherwise disables it.

Mipmapping is disabled by default.

If mipmapping is enabled, additional memory will be allocated for the mipmap levels. The mipmap levels can be updated by binding the texture and calling glGenerateMipmap(). Mipmapping cannot be enabled for multisampled framebuffer objects.

This function was introduced in Qt 4.8.

See also mipmap() and QGLFramebufferObject::texture().

Upstream PySide2 reference signatures (binding differences may apply):

setMipmap(self, enabled: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#setMipmap

setSamples

setSamples(samples: int) -> None

X.setSamples(samples)

Supplemental documentation: Qt 5 reference:

void QGLFramebufferObjectFormat::setSamples(int samples)

Sets the number of samples per pixel for a multisample framebuffer object to samples. The default sample count of 0 represents a regular non-multisample framebuffer object.

If the desired amount of samples per pixel is not supported by the hardware then the maximum number of samples per pixel will be used. Note that multisample framebuffer objects cannot be bound as textures. Also, the GL_EXT_framebuffer_multisample extension is required to create a framebuffer with more than one sample per pixel.

See also samples().

Upstream PySide2 reference signatures (binding differences may apply):

setSamples(self, samples: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#setSamples

setTextureTarget

setTextureTarget(target: int) -> None

X.setTextureTarget(target)

Supplemental documentation: Qt 5 reference:

void QGLFramebufferObjectFormat::setTextureTarget(GLenum target)

Sets the texture target of the texture attached to a framebuffer object to target. Ignored for multisample framebuffer objects.

See also textureTarget() and samples().

Upstream PySide2 reference signatures (binding differences may apply):

setTextureTarget(self, target: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#setTextureTarget

textureTarget

textureTarget() -> int

X.textureTarget() -> int

Supplemental documentation: Qt 5 reference:

GLenum QGLFramebufferObjectFormat::textureTarget() const

Returns the texture target of the texture attached to a framebuffer object. Ignored for multisample framebuffer objects. The default is GL_TEXTURE_2D.

See also setTextureTarget() and samples().

Upstream PySide2 reference signatures (binding differences may apply):

textureTarget(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglframebufferobjectformat.html#textureTarget