42 #ifndef QEGLCONTEXT_P_H 43 #define QEGLCONTEXT_P_H 56 #include <QtCore/qsize.h> 57 #include <QtGui/qimage.h> 59 #include <QtGui/private/qegl_p.h> 60 #include <QtGui/private/qeglproperties_p.h> 71 bool isCurrent()
const;
79 void destroyContext();
81 void destroySurface(EGLSurface surface);
83 bool makeCurrent(EGLSurface surface);
85 bool lazyDoneCurrent();
86 bool swapBuffers(EGLSurface surface);
87 bool swapBuffersRegion2NOK(EGLSurface surface,
const QRegion *region);
89 int configAttrib(
int name)
const;
92 void setContext(EGLContext context) {
ctx = context; ownsContext =
false;}
96 EGLConfig
config()
const {
return cfg; }
118 #endif // QEGLCONTEXT_P_H
#define QT_END_NAMESPACE
This macro expands to.
static bool match(const uchar *found, const char *target, uint len)
EGLContext context() const
void setApi(QEgl::API api)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_GUI_EXPORT EGLDisplay display()
EGLSurface currentSurface
static QEglContext * createContext(QPaintDevice *device)
The QRegion class specifies a clip region for a painter.
void setContext(EGLContext context)
Q_GUI_EXPORT EGLSurface createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *surfaceAttribs=0)
void setConfig(EGLConfig config)
static const QCssKnownValue properties[NumProperties - 1]
Q_GUI_EXPORT EGLConfig chooseConfig(const QEglProperties *configAttribs, QEgl::PixelFormatMatch match=QEgl::ExactPixelFormat)