Qt 4.8
|
#include <qeglcontext_p.h>
Public Functions | |
QEgl::API | api () const |
bool | chooseConfig (const QEglProperties &properties, QEgl::PixelFormatMatch match=QEgl::ExactPixelFormat) |
EGLConfig | config () const |
int | configAttrib (int name) const |
EGLContext | context () const |
bool | createContext (QEglContext *shareContext=0, const QEglProperties *properties=0) |
EGLSurface | createSurface (QPaintDevice *device, const QEglProperties *properties=0) |
void | destroyContext () |
void | destroySurface (EGLSurface surface) |
EGLDisplay | display () |
bool | doneCurrent () |
bool | isCurrent () const |
bool | isSharing () const |
bool | isValid () const |
bool | lazyDoneCurrent () |
bool | makeCurrent (EGLSurface surface) |
QEglContext () | |
void | setApi (QEgl::API api) |
void | setConfig (EGLConfig config) |
void | setContext (EGLContext context) |
bool | swapBuffers (EGLSurface surface) |
bool | swapBuffersRegion2NOK (EGLSurface surface, const QRegion *region) |
~QEglContext () | |
Static Private Functions | |
static QEglContext * | currentContext (QEgl::API api) |
static void | setCurrentContext (QEgl::API api, QEglContext *context) |
Properties | |
bool | apiChanged |
QEgl::API | apiType |
EGLConfig | cfg |
EGLContext | ctx |
bool | current |
EGLSurface | currentSurface |
bool | ownsContext |
bool | sharing |
Friends | |
class | QMeeGoGraphicsSystem |
class | QMeeGoPixmapData |
Definition at line 64 of file qeglcontext_p.h.
QEglContext::QEglContext | ( | ) |
Definition at line 92 of file qegl.cpp.
|
inline |
Definition at line 74 of file qeglcontext_p.h.
bool QEglContext::chooseConfig | ( | const QEglProperties & | properties, |
QEgl::PixelFormatMatch | match = QEgl::ExactPixelFormat |
||
) |
Definition at line 348 of file qegl.cpp.
Referenced by createContext(), and QEgl::defaultConfig().
|
inline |
Definition at line 96 of file qeglcontext_p.h.
Referenced by QGLPixelBufferPrivate::init(), qt_egl_create_surface(), qt_vg_shared_surface(), and QVGEGLWindowSurfacePrivate::windowSurfaceSize().
int QEglContext::configAttrib | ( | int | name | ) | const |
Definition at line 568 of file qegl.cpp.
Referenced by qt_vg_config_to_image_format(), and qt_vg_unregister_pixmap().
|
inline |
Definition at line 91 of file qeglcontext_p.h.
Referenced by QVGEGLWindowSurfaceDirect::ensureContext(), and setCurrentContext().
bool QEglContext::createContext | ( | QEglContext * | shareContext = 0 , |
const QEglProperties * | properties = 0 |
||
) |
Definition at line 361 of file qegl.cpp.
Referenced by createContext(), and QX11GLSharedContexts::QX11GLSharedContexts().
EGLSurface QEglContext::createSurface | ( | QPaintDevice * | device, |
const QEglProperties * | properties = 0 |
||
) |
Definition at line 354 of file qegl.cpp.
Referenced by QVGEGLWindowSurfaceDirect::ensureContext().
|
staticprivate |
Definition at line 799 of file qegl.cpp.
Referenced by QMeeGoPixmapData::imageToEGLSharedImage(), makeCurrent(), and QMeeGoGraphicsSystem::setSurfaceScaling().
void QEglContext::destroyContext | ( | ) |
void QEglContext::destroySurface | ( | EGLSurface | surface | ) |
Definition at line 415 of file qegl.cpp.
Referenced by QVGEGLWindowSurfaceDirect::ensureContext(), QVGEGLWindowSurfacePrivate::windowSurfaceSize(), QVGEGLWindowSurfaceDirect::~QVGEGLWindowSurfaceDirect(), and QVGSharedContext::~QVGSharedContext().
|
inline |
Definition at line 94 of file qeglcontext_p.h.
Referenced by QEgl::chooseConfig(), createContext(), QEgl::defaultConfig(), destroyContext(), destroySurface(), QEgl::dumpAllConfigs(), and qt_egl_create_surface().
bool QEglContext::doneCurrent | ( | ) |
Definition at line 485 of file qegl.cpp.
Referenced by destroySurface(), QVGEGLWindowSurfaceDirect::ensureContext(), qt_vg_destroy_shared_context(), QX11GLSharedContexts::QX11GLSharedContexts(), QVGEGLWindowSurfacePrivate::windowSurfaceSize(), and QVGSharedContext::~QVGSharedContext().
bool QEglContext::isCurrent | ( | ) | const |
Definition at line 121 of file qegl.cpp.
Referenced by QVGPixmapData::destroyImageAndContext().
|
inline |
Definition at line 72 of file qeglcontext_p.h.
bool QEglContext::isValid | ( | ) | const |
Definition at line 116 of file qegl.cpp.
Referenced by QX11GLSharedContexts::QX11GLSharedContexts().
bool QEglContext::lazyDoneCurrent | ( | ) |
Definition at line 519 of file qegl.cpp.
Referenced by QVGPixmapData::destroyImageAndContext(), QVGEGLWindowSurfaceDirect::endPaint(), qt_vg_hibernate_pixmaps(), QVGEGLWindowSurfaceDirect::scroll(), and QVGEGLWindowSurfacePrivate::windowSurfaceSize().
bool QEglContext::makeCurrent | ( | EGLSurface | surface | ) |
Definition at line 433 of file qegl.cpp.
Referenced by QVGEGLWindowSurfaceDirect::beginPaint(), QVGPixmapData::destroyImageAndContext(), QVGEGLWindowSurfaceDirect::endPaint(), qt_vg_destroy_shared_context(), qt_vg_hibernate_pixmaps(), QX11GLSharedContexts::QX11GLSharedContexts(), QVGEGLWindowSurfaceDirect::scroll(), QVGEGLWindowSurfacePrivate::windowSurfaceSize(), and QVGSharedContext::~QVGSharedContext().
|
inline |
|
inline |
Definition at line 97 of file qeglcontext_p.h.
Referenced by createContext(), and QX11GLSharedContexts::QX11GLSharedContexts().
|
inline |
Definition at line 92 of file qeglcontext_p.h.
|
staticprivate |
Definition at line 807 of file qegl.cpp.
Referenced by doneCurrent(), and makeCurrent().
bool QEglContext::swapBuffers | ( | EGLSurface | surface | ) |
Definition at line 525 of file qegl.cpp.
Referenced by QVGEGLWindowSurfaceDirect::endPaint().
bool QEglContext::swapBuffersRegion2NOK | ( | EGLSurface | surface, |
const QRegion * | region | ||
) |
Definition at line 543 of file qegl.cpp.
|
friend |
Definition at line 112 of file qeglcontext_p.h.
|
friend |
Definition at line 113 of file qeglcontext_p.h.
|
private |
Definition at line 107 of file qeglcontext_p.h.
Referenced by makeCurrent(), and swapBuffers().
|
private |
Definition at line 100 of file qeglcontext_p.h.
Referenced by createContext(), doneCurrent(), and makeCurrent().
|
private |
Definition at line 102 of file qeglcontext_p.h.
Referenced by chooseConfig(), QEgl::chooseConfig(), configAttrib(), createContext(), createSurface(), destroyContext(), and QEgl::eglSwapBuffersRegion2NOK().
|
private |
Definition at line 101 of file qeglcontext_p.h.
Referenced by createContext(), destroyContext(), doneCurrent(), isValid(), makeCurrent(), and swapBuffers().
|
private |
Definition at line 104 of file qeglcontext_p.h.
Referenced by doneCurrent(), isCurrent(), lazyDoneCurrent(), and makeCurrent().
|
private |
Definition at line 103 of file qeglcontext_p.h.
Referenced by destroySurface(), doneCurrent(), and makeCurrent().
|
private |
Definition at line 105 of file qeglcontext_p.h.
Referenced by destroyContext().
|
private |
Definition at line 106 of file qeglcontext_p.h.
Referenced by createContext().