Пример #1
0
bool sipQGLContext::create(const QGLContext*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_create);

    if (!sipMeth)
        return QGLContext::create(a0);

    extern bool sipVH_QtOpenGL_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QGLContext*);

    return sipVH_QtOpenGL_0(sipGILState, sipModuleAPI_QtOpenGL_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}
Пример #2
0
bool sipQGLContext::chooseContext(const QGLContext*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_chooseContext);

    if (!sipMeth)
        return QGLContext::chooseContext(a0);

    extern bool sipVH_QtOpenGL_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QGLContext*);

    return sipVH_QtOpenGL_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}