Qt 4.8
|
#include <qwaylandglcontext.h>
Public Functions | |
void | doneCurrent () |
Reimplement in subclass to release current context. More... | |
EGLConfig | eglConfig () const |
void * | getProcAddress (const QString &) |
Reimplement in subclass to native getProcAddr calls. More... | |
void | makeCurrent () |
Reimplement in subclass to do makeCurrent on native GL context. More... | |
QPlatformWindowFormat | platformWindowFormat () const |
QWidget has the function qplatformWindowFormat(). More... | |
QWaylandGLContext (EGLDisplay eglDisplay, const QPlatformWindowFormat &format) | |
void | setEglSurface (EGLSurface surface) |
void | swapBuffers () |
Reimplement in subclass to native swap buffers calls. More... | |
~QWaylandGLContext () | |
Public Functions inherited from QPlatformGLContext | |
QPlatformGLContext () | |
All subclasses needs to specify the platformWindow. More... | |
virtual | ~QPlatformGLContext () |
If this is the current context for the thread, doneCurrent is called. More... | |
Private Functions | |
QWaylandGLContext () | |
Properties | |
EGLConfig | mConfig |
EGLContext | mContext |
EGLDisplay | mEglDisplay |
QPlatformWindowFormat | mFormat |
EGLSurface | mSurface |
Additional Inherited Members | |
Static Public Functions inherited from QPlatformGLContext | |
static const QPlatformGLContext * | currentContext () |
Returns the last context which called makeCurrent. More... | |
Protected Variables inherited from QPlatformGLContext | |
QScopedPointer< QPlatformGLContextPrivate > | d_ptr |
Definition at line 54 of file qwaylandglcontext.h.
QWaylandGLContext::QWaylandGLContext | ( | EGLDisplay | eglDisplay, |
const QPlatformWindowFormat & | format | ||
) |
Definition at line 53 of file qwaylandglcontext.cpp.
QWaylandGLContext::~QWaylandGLContext | ( | ) |
Definition at line 86 of file qwaylandglcontext.cpp.
|
private |
Definition at line 78 of file qwaylandglcontext.cpp.
|
virtual |
Reimplement in subclass to release current context.
Typically this is calling makeCurrent with 0 "surface"
Reimplemented from QPlatformGLContext.
Definition at line 100 of file qwaylandglcontext.cpp.
Referenced by setEglSurface().
EGLConfig QWaylandGLContext::eglConfig | ( | ) | const |
Definition at line 129 of file qwaylandglcontext.cpp.
Referenced by QWaylandEglWindow::glContext(), QWaylandEglWindow::newSurfaceCreated(), and platformWindowFormat().
|
virtual |
Reimplement in subclass to native getProcAddr calls.
Note: its convenient to use qPrintable(const QString &str) to get the const char * pointer
Implements QPlatformGLContext.
Definition at line 111 of file qwaylandglcontext.cpp.
|
virtual |
Reimplement in subclass to do makeCurrent on native GL context.
Reimplemented from QPlatformGLContext.
Definition at line 91 of file qwaylandglcontext.cpp.
Referenced by setEglSurface().
|
inlinevirtual |
QWidget has the function qplatformWindowFormat().
That function is for the application programmer to request the format of the window and the context that he wants.
Reimplement this function in a subclass to indicate what format the glContext actually has.
Implements QPlatformGLContext.
Definition at line 63 of file qwaylandglcontext.h.
void QWaylandGLContext::setEglSurface | ( | EGLSurface | surface | ) |
Definition at line 116 of file qwaylandglcontext.cpp.
Referenced by QWaylandEglWindow::glContext(), QWaylandEglWindow::newSurfaceCreated(), and platformWindowFormat().
|
virtual |
Reimplement in subclass to native swap buffers calls.
Implements QPlatformGLContext.
Definition at line 106 of file qwaylandglcontext.cpp.
|
private |
Definition at line 72 of file qwaylandglcontext.h.
Referenced by eglConfig(), and QWaylandGLContext().
|
private |
Definition at line 70 of file qwaylandglcontext.h.
Referenced by makeCurrent(), QWaylandGLContext(), and ~QWaylandGLContext().
|
private |
Definition at line 68 of file qwaylandglcontext.h.
Referenced by doneCurrent(), makeCurrent(), QWaylandGLContext(), swapBuffers(), and ~QWaylandGLContext().
|
private |
Definition at line 73 of file qwaylandglcontext.h.
Referenced by platformWindowFormat(), and QWaylandGLContext().
|
private |
Definition at line 71 of file qwaylandglcontext.h.
Referenced by makeCurrent(), setEglSurface(), and swapBuffers().