summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglframebufferobject.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-13 23:38:26 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-13 23:38:26 (GMT)
commitdcbafc17a0fff2a7de7d4eb61e7fd665e59aae18 (patch)
tree327b03645148c20824cb73cd56396b8d4a2cd565 /src/opengl/qglframebufferobject.cpp
parent6b401a8f426c089714c656b2ccfd334d3cbe3280 (diff)
downloadQt-dcbafc17a0fff2a7de7d4eb61e7fd665e59aae18.zip
Qt-dcbafc17a0fff2a7de7d4eb61e7fd665e59aae18.tar.gz
Qt-dcbafc17a0fff2a7de7d4eb61e7fd665e59aae18.tar.bz2
qdoc: document default values for QGLFramebufferObject properties
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r--src/opengl/qglframebufferobject.cpp26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp
index 81f2aa9..4b8a67e 100644
--- a/src/opengl/qglframebufferobject.cpp
+++ b/src/opengl/qglframebufferobject.cpp
@@ -120,6 +120,7 @@ void QGLFramebufferObjectFormat::detach()
By default the format specifies a non-multisample framebuffer object with no
attachments, texture target \c GL_TEXTURE_2D, and internal format \c GL_RGBA8.
+ On OpenGL/ES systems, the default internal format is \c GL_RGBA.
\sa samples(), attachment(), target(), internalTextureFormat()
*/
@@ -165,8 +166,8 @@ QGLFramebufferObjectFormat::~QGLFramebufferObjectFormat()
/*!
Sets the number of samples per pixel for a multisample framebuffer object
- to \a samples.
- A sample count of 0 represents a regular non-multisample framebuffer object.
+ to \a 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
@@ -185,6 +186,7 @@ void QGLFramebufferObjectFormat::setSamples(int samples)
/*!
Returns the number of samples per pixel if a framebuffer object
is a multisample framebuffer object. Otherwise, returns 0.
+ The default value is 0.
\sa setSamples()
*/
@@ -205,8 +207,8 @@ void QGLFramebufferObjectFormat::setAttachment(QGLFramebufferObject::Attachment
}
/*!
- Returns the status of the depth and stencil buffers attached to
- a framebuffer object.
+ Returns the configuration of the depth and stencil buffers attached to
+ a framebuffer object. The default is QGLFramebufferObject::NoAttachment.
\sa setAttachment()
*/
@@ -229,7 +231,8 @@ void QGLFramebufferObjectFormat::setTextureTarget(GLenum target)
/*!
Returns the texture target of the texture attached to a framebuffer object.
- Ignored for multisample framebuffer objects.
+ Ignored for multisample framebuffer objects. The default is
+ \c GL_TEXTURE_2D.
\sa setTextureTarget(), samples()
*/
@@ -253,7 +256,9 @@ void QGLFramebufferObjectFormat::setInternalTextureFormat(GLenum internalTexture
/*!
Returns the internal format of a framebuffer object's texture or
- multisample framebuffer object's color buffer.
+ multisample framebuffer object's color buffer. The default is
+ \c GL_RGBA8 on desktop OpenGL systems, and \c GL_RGBA on
+ OpenGL/ES systems.
\sa setInternalTextureFormat()
*/
@@ -641,7 +646,8 @@ void QGLFramebufferObjectPrivate::init(QGLFramebufferObject *q, const QSize &sz,
By default, no depth and stencil buffers are attached. This behavior
can be toggled using one of the overloaded constructors.
- The default internal texture format is \c GL_RGBA8.
+ The default internal texture format is \c GL_RGBA8 for desktop
+ OpenGL, and \c GL_RGBA for OpenGL/ES.
It is important that you have a current GL context set when
creating the QGLFramebufferObject, otherwise the initialization
@@ -727,7 +733,8 @@ QGLFramebufferObject::QGLFramebufferObject(int width, int height, QMacCompatGLen
The \a attachment parameter describes the depth/stencil buffer
configuration, \a target the texture target and \a internal_format
the internal texture format. The default texture target is \c
- GL_TEXTURE_2D, while the default internal format is \c GL_RGBA8.
+ GL_TEXTURE_2D, while the default internal format is \c GL_RGBA8
+ for desktop OpenGL and \c GL_RGBA for OpenGL/ES.
\sa size(), texture(), attachment()
*/
@@ -758,7 +765,8 @@ QGLFramebufferObject::QGLFramebufferObject(int width, int height, Attachment att
The \a attachment parameter describes the depth/stencil buffer
configuration, \a target the texture target and \a internal_format
the internal texture format. The default texture target is \c
- GL_TEXTURE_2D, while the default internal format is \c GL_RGBA8.
+ GL_TEXTURE_2D, while the default internal format is \c GL_RGBA8
+ for desktop OpenGL and \c GL_RGBA for OpenGL/ES.
\sa size(), texture(), attachment()
*/