![]() |
Qt 4.8
|
#include <qeglplatformcontext.h>
Public Functions | |
| void | doneCurrent () |
| Reimplement in subclass to release current context. More... | |
| EGLContext | eglContext () const |
| void * | getProcAddress (const QString &procName) |
| 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... | |
| QEGLPlatformContext (EGLDisplay display, EGLConfig config, EGLint contextAttrs[], EGLSurface surface, EGLenum eglApi, QEGLPlatformContext *shareContext=0) | |
| void | swapBuffers () |
| Reimplement in subclass to native swap buffers calls. More... | |
| ~QEGLPlatformContext () | |
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... | |
Properties | |
| EGLenum | m_eglApi |
| EGLContext | m_eglContext |
| EGLDisplay | m_eglDisplay |
| EGLSurface | m_eglSurface |
| QPlatformWindowFormat | m_windowFormat |
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 48 of file qeglplatformcontext.h.
| QEGLPlatformContext::QEGLPlatformContext | ( | EGLDisplay | display, |
| EGLConfig | config, | ||
| EGLint | contextAttrs[], | ||
| EGLSurface | surface, | ||
| EGLenum | eglApi, | ||
| QEGLPlatformContext * | shareContext = 0 |
||
| ) |
Definition at line 51 of file qeglplatformcontext.cpp.
| QEGLPlatformContext::~QEGLPlatformContext | ( | ) |
Definition at line 73 of file qeglplatformcontext.cpp.
|
virtual |
Reimplement in subclass to release current context.
Typically this is calling makeCurrent with 0 "surface"
Reimplemented from QPlatformGLContext.
Definition at line 120 of file qeglplatformcontext.cpp.
Referenced by ~QEGLPlatformContext().
| EGLContext QEGLPlatformContext::eglContext | ( | ) | const |
Definition at line 155 of file qeglplatformcontext.cpp.
Referenced by QXcbNativeInterface::eglContextForWidget(), and QEGLPlatformContext().
|
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 141 of file qeglplatformcontext.cpp.
|
virtual |
Reimplement in subclass to do makeCurrent on native GL context.
Reimplemented from QPlatformGLContext.
Definition at line 90 of file qeglplatformcontext.cpp.
|
virtual |
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 150 of file qeglplatformcontext.cpp.
|
virtual |
Reimplement in subclass to native swap buffers calls.
Implements QPlatformGLContext.
Definition at line 131 of file qeglplatformcontext.cpp.
|
private |
Definition at line 66 of file qeglplatformcontext.h.
Referenced by doneCurrent(), getProcAddress(), makeCurrent(), QEGLPlatformContext(), and swapBuffers().
|
private |
Definition at line 63 of file qeglplatformcontext.h.
Referenced by eglContext(), makeCurrent(), QEGLPlatformContext(), and ~QEGLPlatformContext().
|
private |
Definition at line 64 of file qeglplatformcontext.h.
Referenced by doneCurrent(), makeCurrent(), QEGLPlatformContext(), swapBuffers(), and ~QEGLPlatformContext().
|
private |
Definition at line 65 of file qeglplatformcontext.h.
Referenced by makeCurrent(), QEGLPlatformContext(), swapBuffers(), and ~QEGLPlatformContext().
|
private |
Definition at line 68 of file qeglplatformcontext.h.
Referenced by platformWindowFormat(), and QEGLPlatformContext().