The QGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object. More...
#include <QGLFramebufferObjectFormat>
This class was introduced in Qt 4.6.
QGLFramebufferObjectFormat () | |
QGLFramebufferObjectFormat ( const QGLFramebufferObjectFormat & other ) | |
~QGLFramebufferObjectFormat () | |
QGLFramebufferObject::Attachment | attachment () const |
GLenum | internalTextureFormat () const |
int | samples () const |
void | setAttachment ( QGLFramebufferObject::Attachment attachment ) |
void | setInternalTextureFormat ( GLenum internalTextureFormat ) |
void | setSamples ( int samples ) |
void | setTextureTarget ( GLenum target ) |
GLenum | textureTarget () const |
bool | operator!= ( const QGLFramebufferObjectFormat & other ) const |
QGLFramebufferObjectFormat & | operator= ( const QGLFramebufferObjectFormat & other ) |
bool | operator== ( const QGLFramebufferObjectFormat & other ) const |
The QGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object.
A framebuffer object has several characteristics:
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.
See also QGLFramebufferObject.
Creates a QGLFramebufferObjectFormat object for specifying the format of an OpenGL framebuffer object.
By default the format specifies a non-multisample framebuffer object with no attachments, texture target GL_TEXTURE_2D, and internal format GL_RGBA8. On OpenGL/ES systems, the default internal format is GL_RGBA.
See also samples(), attachment(), and internalTextureFormat().
Constructs a copy of other.
Destroys the QGLFramebufferObjectFormat.
Returns the configuration of the depth and stencil buffers attached to a framebuffer object. The default is QGLFramebufferObject::NoAttachment.
See also setAttachment().
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().
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().
Sets the attachment configuration of a framebuffer object to attachment.
See also attachment().
Sets the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer to internalTextureFormat.
See also internalTextureFormat().
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 can not 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().
Sets the texture target of the texture attached to a framebuffer object to target. Ignored for multisample framebuffer objects.
See also textureTarget() and samples().
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().
Returns false if all the options of this framebuffer object format are the same as other; otherwise returns true.
Assigns other to this object.
Returns true if all the options of this framebuffer object format are the same as other; otherwise returns false.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.