6.0.0-rc4Source

QOpenGLFramebufferObjectFormat Class

The QOpenGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object. More…

Header#include <QOpenGLFramebufferObjectFormat>
CMaketarget_link_libraries(app PRIVATE Nt::OpenGL)
ModuleNt OpenGL C++ Classes
Since6.0

List of all members, including inherited members

Public Functions

QOpenGLFramebufferObjectFormat()
voidsetSamples(int samples)
intsamples() const
voidsetMipmap(bool enabled)
boolmipmap() const
voidsetAttachment(QOpenGLFramebufferObject::Attachment attachment)
QOpenGLFramebufferObject::Attachmentattachment() const
voidsetTextureTarget(GLenum target)
GLenumtextureTarget() const
voidsetInternalTextureFormat(GLenum internalTextureFormat)
GLenuminternalTextureFormat() const
booloperator==(const QOpenGLFramebufferObjectFormat &other) const
booloperator!=(const QOpenGLFramebufferObjectFormat &other) const

Detailed Description

See also QOpenGLFramebufferObject.

Differences from Qt

The texture target must be GL_TEXTURE_2D.

Member Function Documentation

QOpenGLFramebufferObjectFormat::QOpenGLFramebufferObjectFormat()

Constructs a format with no samples, no mipmaps, no attachment, a GL_TEXTURE_2D texture and the default internal format.

QOpenGLFramebufferObject::Attachment QOpenGLFramebufferObjectFormat::attachment() const

Returns the depth and stencil attachment.

GLenum QOpenGLFramebufferObjectFormat::internalTextureFormat() const

Returns the internal format of the colors, or 0 for the default.

bool QOpenGLFramebufferObjectFormat::mipmap() const

Returns true if the texture has mipmaps.

bool QOpenGLFramebufferObjectFormat::operator!=(const QOpenGLFramebufferObjectFormat &other) const

Returns true if this format differs from other.

bool QOpenGLFramebufferObjectFormat::operator==(const QOpenGLFramebufferObjectFormat &other) const

Returns true if this format equals other.

int QOpenGLFramebufferObjectFormat::samples() const

Returns the number of samples per pixel.

void QOpenGLFramebufferObjectFormat::setAttachment(QOpenGLFramebufferObject::Attachment attachment)

Sets the depth and stencil attachment.

void QOpenGLFramebufferObjectFormat::setInternalTextureFormat(GLenum internalTextureFormat)

Sets the internal format of the colors to internalTextureFormat.

void QOpenGLFramebufferObjectFormat::setMipmap(bool enabled)

Gives the texture mipmaps if enabled is true.

void QOpenGLFramebufferObjectFormat::setSamples(int samples)

Sets the number of samples per pixel to samples. With more than 0, the object is multisampled and has no texture.

void QOpenGLFramebufferObjectFormat::setTextureTarget(GLenum target)

Sets the texture target to target.

GLenum QOpenGLFramebufferObjectFormat::textureTarget() const

Returns the texture target.