*/
/*!
- \fn void *QGLContext::getProcAddress(const QString &proc) const
+ \fn QFunctionPointer QGLContext::getProcAddress() const
Returns a function pointer to the GL extension function passed in
\a proc. 0 is returned if a pointer to the function could not be
static void setTextureCacheLimit(int size);
static int textureCacheLimit();
- void *getProcAddress(const QString &proc) const;
+ QFunctionPointer getProcAddress(const QString &proc) const;
QPaintDevice* device() const;
QColor overlayTransparentColor() const;
d->guiGlContext->swapBuffers(widget->windowHandle());
}
-void *QGLContext::getProcAddress(const QString &procName) const
+QFunctionPointer QGLContext::getProcAddress(const QString &procName) const
{
Q_D(const QGLContext);
- return (void *)d->guiGlContext->getProcAddress(procName.toAscii());
+ return d->guiGlContext->getProcAddress(procName.toAscii());
}
void QGLWidget::setContext(QGLContext *context,
QT_BEGIN_NAMESPACE
-static void *qt_gl_getProcAddress_search
+static QFunctionPointer qt_gl_getProcAddress_search
(QGLContext *ctx, const char *name1, const char *name2,
const char *name3, const char *name4)
{
- void *addr;
-
- addr = ctx->getProcAddress(QLatin1String(name1));
+ QFunctionPointer addr = ctx->getProcAddress(QLatin1String(name1));
if (addr)
return addr;