QGLFramebufferObjectFormat Class

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

Header: #include <QGLFramebufferObjectFormat>
qmake: QT += opengl
Since: Qt 4.6

This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This class was introduced in Qt 4.6.

Detailed Description

A framebuffer object has several characteristics:

  • Number of samples per pixels.
  • Depth and/or stencil attachments.
  • Texture target.
  • Internal texture format.

Note that the desired attachments or number of samples per pixels might not be supported by the hardware driver. Call QGLFramebufferObject::format() after creating a QGLFramebufferObject to find the exact format that was used to create the frame buffer object.

Note: This class has been deprecated in favor of QOpenGLFramebufferObjectFormat.

See also QGLFramebufferObject.