summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglfunctions.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2012-08-30 15:22:59 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-31 21:23:38 +0200
commit3d04e4965e292be59464acc18c8306d89d3be3e1 (patch)
tree19cd345b1531c59403966c435473c3e94242bba8 /src/gui/opengl/qopenglfunctions.cpp
parent70bc7f8b32cbec135c398cff689cc6cc5f86b7a2 (diff)
Doc: Fix some documentation issues.
Change-Id: I21bba7b8a1808cf214cae1b7d3b6b5e41e36e3ba Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/gui/opengl/qopenglfunctions.cpp')
-rw-r--r--src/gui/opengl/qopenglfunctions.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp
index 2142c55fea..30e290ffd6 100644
--- a/src/gui/opengl/qopenglfunctions.cpp
+++ b/src/gui/opengl/qopenglfunctions.cpp
@@ -96,7 +96,7 @@ QT_BEGIN_NAMESPACE
void MyGLWindow::initializeGL()
{
m_context->makeCurrent(this);
- initializeGLFunctions();
+ initializeOpenGLFunctions();
}
\endcode
@@ -157,6 +157,7 @@ QT_BEGIN_NAMESPACE
\value Multisample glSampleCoverage() function is available.
\value StencilSeparate Separate stencil functions are available.
\value NPOTTextures Non power of two textures are available.
+ \value NPOTTextureRepeat Non power of two textures can use GL_REPEAT as wrap parameter.
*/
// Hidden private fields for additional extension data.
@@ -198,10 +199,10 @@ static QOpenGLFunctionsPrivateEx *qt_gl_functions(QOpenGLContext *context = 0)
/*!
Constructs a default function resolver. The resolver cannot
- be used until initializeGLFunctions() is called to specify
+ be used until initializeOpenGLFunctions() is called to specify
the context.
- \sa initializeGLFunctions()
+ \sa initializeOpenGLFunctions()
*/
QOpenGLFunctions::QOpenGLFunctions()
: d_ptr(0)
@@ -215,10 +216,10 @@ QOpenGLFunctions::QOpenGLFunctions()
The context or another context in the group must be current.
An object constructed in this way can only be used with \a context
- and other contexts that share with it. Use initializeGLFunctions()
+ and other contexts that share with it. Use initializeOpenGLFunctions()
to change the object's context association.
- \sa initializeGLFunctions()
+ \sa initializeOpenGLFunctions()
*/
QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context)
: d_ptr(0)
@@ -440,6 +441,13 @@ bool QOpenGLExtensions::hasOpenGLExtension(QOpenGLExtensions::OpenGLExtension ex
}
/*!
+ \fn void QOpenGLFunctions::initializeGLFunctions()
+ \obsolete
+
+ Use initializeOpenGLFunctions() instead.
+*/
+
+/*!
Initializes OpenGL function resolution for the current context.
After calling this function, the QOpenGLFunctions object can only be
@@ -1456,6 +1464,11 @@ void QOpenGLFunctions::initializeOpenGLFunctions()
This convenience function will do nothing on OpenGL/ES 1.x systems.
*/
+/*!
+ \fn bool QOpenGLFunctions::isInitialized(const QOpenGLFunctionsPrivate *d)
+ \internal
+*/
+
namespace {
enum ResolvePolicy