42 #include <QtGui/qpaintdevice.h> 43 #include <QtGui/qpixmap.h> 44 #include <QtGui/qwidget.h> 45 #include <QtCore/qdebug.h> 53 static void noegl(
const char *fn)
55 qWarning() << fn <<
" called, but Qt configured without EGL" <<
endl;
58 #define NOEGL noegl(__FUNCTION__); QTextStream & endl(QTextStream &stream)
Writes ' ' to the stream and flushes the stream.
EGLSurface createSurface(QPaintDevice *device, const QEglProperties *properties=0)
#define QT_END_NAMESPACE
This macro expands to.
bool createContext(QEglContext *shareContext=0, const QEglProperties *properties=0)
QPointer< QWidget > widget
NativePixmapType EGLNativePixmapType
static bool match(const uchar *found, const char *target, uint len)
bool chooseConfig(const QEglProperties &properties, QEgl::PixelFormatMatch match=QEgl::ExactPixelFormat)
The QString class provides a Unicode character string.
Q_GUI_EXPORT QString extensions()
bool swapBuffers(EGLSurface surface)
NativeWindowType EGLNativeWindowType
Q_GUI_EXPORT EGLNativePixmapType nativePixmap(QPixmap *)
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
bool swapBuffersRegion2NOK(EGLSurface surface, const QRegion *region)
EGLContext context() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_GUI_EXPORT EGLDisplay display()
Q_GUI_EXPORT EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img)
Q_CORE_EXPORT void qWarning(const char *,...)
The QRegion class specifies a clip region for a painter.
Q_GUI_EXPORT bool hasExtension(const char *extensionName)
Q_GUI_EXPORT EGLConfig defaultConfig(int devType, API api, ConfigOptions options)
int configAttrib(int name) const
static QEglContext * currentContext(QEgl::API api)
Q_GUI_EXPORT EGLSurface createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *surfaceAttribs=0)
Q_GUI_EXPORT EGLNativeDisplayType nativeDisplay()
Q_GUI_EXPORT void dumpAllConfigs()
bool makeCurrent(EGLSurface surface)
void destroySurface(EGLSurface surface)
Q_GUI_EXPORT EGLBoolean eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EGLint count, const EGLint *rects)
static const QCssKnownValue properties[NumProperties - 1]
The QPixmap class is an off-screen image representation that can be used as a paint device...
NativeDisplayType EGLNativeDisplayType
Q_GUI_EXPORT EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
static void noegl(const char *fn)
Q_GUI_EXPORT EGLConfig chooseConfig(const QEglProperties *configAttribs, QEgl::PixelFormatMatch match=QEgl::ExactPixelFormat)
static void setCurrentContext(QEgl::API api, QEglContext *context)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Q_GUI_EXPORT EGLNativeWindowType nativeWindow(QWidget *)