Qt 4.8
|
#include <qdri2context.h>
Public Functions | |
void | doneCurrent () |
Reimplement in subclass to release current context. More... | |
void * | 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... | |
QDri2Context (QXcbWindow *window) | |
void | resize (const QSize &size) |
void | swapBuffers () |
Reimplement in subclass to native swap buffers calls. More... | |
~QDri2Context () | |
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... | |
Protected Functions | |
xcb_dri2_dri2_buffer_t * | backBuffer () |
Protected Variables | |
QScopedPointer< QDri2ContextPrivate > | d_ptr |
Protected Variables inherited from QPlatformGLContext | |
QScopedPointer< QPlatformGLContextPrivate > | d_ptr |
Private Functions | |
Q_DECLARE_PRIVATE (QDri2Context) | |
Additional Inherited Members | |
Static Public Functions inherited from QPlatformGLContext | |
static const QPlatformGLContext * | currentContext () |
Returns the last context which called makeCurrent. More... | |
Definition at line 52 of file qdri2context.h.
QDri2Context::QDri2Context | ( | QXcbWindow * | window | ) |
Definition at line 89 of file qdri2context.cpp.
QDri2Context::~QDri2Context | ( | ) |
Definition at line 142 of file qdri2context.cpp.
|
protected |
Definition at line 239 of file qdri2context.cpp.
Referenced by resize().
|
virtual |
Reimplement in subclass to release current context.
Typically this is calling makeCurrent with 0 "surface"
Reimplemented from QPlatformGLContext.
Definition at line 157 of file qdri2context.cpp.
void * QDri2Context::eglContext | ( | ) | const |
Definition at line 267 of file qdri2context.cpp.
Referenced by QXcbNativeInterface::eglContextForWidget(), and QDri2Context().
|
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 191 of file qdri2context.cpp.
|
virtual |
Reimplement in subclass to do makeCurrent on native GL context.
Reimplemented from QPlatformGLContext.
Definition at line 147 of file qdri2context.cpp.
Referenced by QDri2Context().
|
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 233 of file qdri2context.cpp.
|
private |
void QDri2Context::resize | ( | const QSize & | size | ) |
Definition at line 196 of file qdri2context.cpp.
Referenced by QDri2Context().
|
virtual |
Reimplement in subclass to native swap buffers calls.
Implements QPlatformGLContext.
Definition at line 164 of file qdri2context.cpp.
|
protected |
Definition at line 72 of file qdri2context.h.