Qt 4.8
|
#include <qbbglcontext.h>
Public Functions | |
virtual void | doneCurrent () |
Reimplement in subclass to release current context. More... | |
virtual void * | getProcAddress (const QString &procName) |
Reimplement in subclass to native getProcAddr calls. More... | |
virtual void | makeCurrent () |
Reimplement in subclass to do makeCurrent on native GL context. More... | |
virtual QPlatformWindowFormat | platformWindowFormat () const |
QWidget has the function qplatformWindowFormat(). More... | |
QBBGLContext (QBBWindow *platformWindow) | |
void | resizeSurface (const QSize &size) |
QSize | surfaceSize () const |
virtual void | swapBuffers () |
Reimplement in subclass to native swap buffers calls. More... | |
virtual | ~QBBGLContext () |
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... | |
Static Public Functions | |
static void | initialize () |
static void | shutdown () |
Static Public Functions inherited from QPlatformGLContext | |
static const QPlatformGLContext * | currentContext () |
Returns the last context which called makeCurrent. More... | |
Private Functions | |
void | createSurface () |
void | destroySurface () |
bool | isCurrent () const |
Static Private Functions | |
static EGLint * | contextAttrs () |
Properties | |
EGLConfig | mEglConfig |
EGLContext | mEglContext |
EGLSurface | mEglSurface |
QBBWindow * | mPlatformWindow |
QSize | mSurfaceSize |
QPlatformWindowFormat | mWindowFormat |
Static Private Attributes | |
static EGLDisplay | sEglDisplay = EGL_NO_DISPLAY |
Additional Inherited Members | |
Protected Variables inherited from QPlatformGLContext | |
QScopedPointer< QPlatformGLContextPrivate > | d_ptr |
Definition at line 55 of file qbbglcontext.h.
QBBGLContext::QBBGLContext | ( | QBBWindow * | platformWindow | ) |
Definition at line 57 of file qbbglcontext.cpp.
|
virtual |
Definition at line 142 of file qbbglcontext.cpp.
|
staticprivate |
Definition at line 303 of file qbbglcontext.cpp.
Referenced by QBBGLContext().
|
private |
Definition at line 319 of file qbbglcontext.cpp.
Referenced by makeCurrent(), and resizeSurface().
|
private |
Definition at line 332 of file qbbglcontext.cpp.
Referenced by resizeSurface(), and ~QBBGLContext().
|
virtual |
Reimplement in subclass to release current context.
Typically this is calling makeCurrent with 0 "surface"
Reimplemented from QPlatformGLContext.
Definition at line 214 of file qbbglcontext.cpp.
Referenced by resizeSurface().
|
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 261 of file qbbglcontext.cpp.
|
static |
Definition at line 157 of file qbbglcontext.cpp.
Referenced by QBBIntegration::QBBIntegration().
|
private |
|
virtual |
Reimplement in subclass to do makeCurrent on native GL context.
Reimplemented from QPlatformGLContext.
Definition at line 184 of file qbbglcontext.cpp.
Referenced by resizeSurface().
|
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 69 of file qbbglcontext.h.
Referenced by QBBWindow::setBufferSize().
void QBBGLContext::resizeSurface | ( | const QSize & | size | ) |
Definition at line 277 of file qbbglcontext.cpp.
Referenced by QBBGLWindowSurface::beginPaint(), platformWindowFormat(), and swapBuffers().
|
static |
|
inline |
Definition at line 72 of file qbbglcontext.h.
Referenced by QBBGLWindowSurface::beginPaint(), and QBBGLPaintDevice::size().
|
virtual |
Reimplement in subclass to native swap buffers calls.
Implements QPlatformGLContext.
Definition at line 236 of file qbbglcontext.cpp.
Referenced by QBBGLWindowSurface::flush().
|
private |
Definition at line 78 of file qbbglcontext.h.
Referenced by createSurface(), and QBBGLContext().
|
private |
Definition at line 80 of file qbbglcontext.h.
Referenced by isCurrent(), makeCurrent(), QBBGLContext(), and ~QBBGLContext().
|
private |
Definition at line 81 of file qbbglcontext.h.
Referenced by createSurface(), destroySurface(), makeCurrent(), and swapBuffers().
|
private |
Definition at line 79 of file qbbglcontext.h.
Referenced by createSurface(), destroySurface(), doneCurrent(), getProcAddress(), makeCurrent(), QBBGLContext(), resizeSurface(), swapBuffers(), and ~QBBGLContext().
|
private |
Definition at line 82 of file qbbglcontext.h.
Referenced by makeCurrent(), resizeSurface(), surfaceSize(), and swapBuffers().
|
private |
Definition at line 77 of file qbbglcontext.h.
Referenced by platformWindowFormat(), and QBBGLContext().
|
staticprivate |
Definition at line 75 of file qbbglcontext.h.
Referenced by createSurface(), destroySurface(), doneCurrent(), initialize(), makeCurrent(), QBBGLContext(), shutdown(), swapBuffers(), and ~QBBGLContext().