com_trolltech_qt_opengl_init.cpp
18 lines
| 1.4 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include <PythonQt.h> | ||
#include "PythonQtWrapper_QGLContext.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QGLColormap.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QGLFramebufferObject.h" | ||
florianlink
|
r28 | #include "PythonQtWrapper_QGLPixelBuffer.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QGLWidget.h" | ||
florianlink
|
r28 | |||
florianlink
|
r13 | void PythonQt_init_QtOpenGL() { | ||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QGLContext", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLContext>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QGLContext>); | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QGLColormap", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLColormap>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QGLColormap>); | ||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QGLFramebufferObject", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLFramebufferObject>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QGLFramebufferObject>); | ||
PythonQt::self()->addParentClass("QGLFramebufferObject", "QPaintDevice",PythonQtUpcastingOffset<QGLFramebufferObject,QPaintDevice>()); | ||||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QGLPixelBuffer", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLPixelBuffer>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QGLPixelBuffer>); | ||
PythonQt::self()->addParentClass("QGLPixelBuffer", "QPaintDevice",PythonQtUpcastingOffset<QGLPixelBuffer,QPaintDevice>()); | ||||
florianlink
|
r24 | PythonQt::self()->registerClass(&QGLWidget::staticMetaObject, "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QGLWidget>); | ||
florianlink
|
r13 | |||
} | ||||