QOpenGLFramebufferObjectFormat Class
The QOpenGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object. More…
| Header | #include <QOpenGLFramebufferObjectFormat> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::OpenGL) |
| Module | Nt OpenGL C++ Classes |
| Since | 6.0 |
List of all members, including inherited members
Public Functions
| QOpenGLFramebufferObjectFormat() | |
| void | setSamples(int samples) |
| int | samples() const |
| void | setMipmap(bool enabled) |
| bool | mipmap() const |
| void | setAttachment(QOpenGLFramebufferObject::Attachment attachment) |
| QOpenGLFramebufferObject::Attachment | attachment() const |
| void | setTextureTarget(GLenum target) |
| GLenum | textureTarget() const |
| void | setInternalTextureFormat(GLenum internalTextureFormat) |
| GLenum | internalTextureFormat() const |
| bool | operator==(const QOpenGLFramebufferObjectFormat &other) const |
| bool | operator!=(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.