QtGui/qplatformglcontext_qpa.h Source File
Go to the documentation of this file.
42 #ifndef QPLATFORM_GL_CONTEXT_H
43 #define QPLATFORM_GL_CONTEXT_H
46 #include <QtGui/QPlatformWindowFormat>
54 class QPlatformGLContextPrivate;
58 Q_DECLARE_PRIVATE(QPlatformGLContext);
61 explicit QPlatformGLContext();
62 virtual ~QPlatformGLContext();
64 virtual void makeCurrent();
65 virtual void doneCurrent();
66 virtual void swapBuffers() = 0;
67 virtual void* getProcAddress(
const QString& procName) = 0;
71 const static QPlatformGLContext *currentContext();
79 friend class QWidgetPrivate;
80 void *qGLContextHandle()
const;
81 void setQGLContextHandle(
void *handle,
void (*qGLContextDeleteFunction)(
void *));
82 void deleteQGLContext();
83 Q_DISABLE_COPY(QPlatformGLContext);
91 #endif // QPLATFORM_GL_INTEGRATION_P_H
#define QT_BEGIN_NAMESPACE
QScopedPointer< QPlatformGLContextPrivate > d_ptr