/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtGui.h"

#line 29 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qopengltextureblitter.sip"
#include <qopengltextureblitter.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQOpenGLTextureBlitter.cpp"

#line 483 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQOpenGLTextureBlitter.cpp"
#line 164 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qrect.sip"
#include <qrect.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQOpenGLTextureBlitter.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qsize.sip"
#include <qsize.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQOpenGLTextureBlitter.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQOpenGLTextureBlitter.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qrect.sip"
#include <qrect.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQOpenGLTextureBlitter.cpp"


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_create, "create(self) -> bool");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_create, doc_QOpenGLTextureBlitter_create);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_isCreated, "isCreated(self) -> bool");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_isCreated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_isCreated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_isCreated, doc_QOpenGLTextureBlitter_isCreated);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_destroy, "destroy(self)");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_destroy, doc_QOpenGLTextureBlitter_destroy);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_supportsExternalOESTarget, "supportsExternalOESTarget(self) -> bool");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_supportsExternalOESTarget(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_supportsExternalOESTarget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsExternalOESTarget();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_supportsExternalOESTarget, doc_QOpenGLTextureBlitter_supportsExternalOESTarget);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_bind, "bind(self, target: int = GL_TEXTURE_2D)");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_bind(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_bind(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::GLenum a0 = GL_TEXTURE_2D;
         ::QOpenGLTextureBlitter *sipCpp;

        static const char *sipKwdList[] = {
            sipName_target,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|u", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0))
        {
            sipCpp->bind(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_bind, doc_QOpenGLTextureBlitter_bind);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_release, "release(self)");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_release(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_release, doc_QOpenGLTextureBlitter_release);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_setRedBlueSwizzle, "setRedBlueSwizzle(self, bool)");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_setRedBlueSwizzle(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_setRedBlueSwizzle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        bool a0;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0))
        {
            sipCpp->setRedBlueSwizzle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_setRedBlueSwizzle, doc_QOpenGLTextureBlitter_setRedBlueSwizzle);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_setOpacity, "setOpacity(self, float)");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_setOpacity(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_setOpacity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        float a0;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0))
        {
            sipCpp->setOpacity(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_setOpacity, doc_QOpenGLTextureBlitter_setOpacity);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_blit, "blit(self, int, QMatrix4x4, QOpenGLTextureBlitter.Origin)\n"
"blit(self, int, QMatrix4x4, QMatrix3x3)");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_blit(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_blit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::GLuint a0;
        const  ::QMatrix4x4* a1;
         ::QOpenGLTextureBlitter::Origin a2;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BuJ9E", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0, sipType_QMatrix4x4, &a1, sipType_QOpenGLTextureBlitter_Origin, &a2))
        {
            sipCpp->blit(a0,*a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
         ::GLuint a0;
        const  ::QMatrix4x4* a1;
        const  ::QMatrix3x3* a2;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BuJ9J9", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0, sipType_QMatrix4x4, &a1, sipType_QMatrix3x3, &a2))
        {
            sipCpp->blit(a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_blit, doc_QOpenGLTextureBlitter_blit);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_targetTransform, "targetTransform(QRectF, QRect) -> QMatrix4x4");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_targetTransform(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_targetTransform(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QRectF* a0;
        const  ::QRect* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QRectF, &a0, sipType_QRect, &a1))
        {
             ::QMatrix4x4*sipRes;

            sipRes = new  ::QMatrix4x4( ::QOpenGLTextureBlitter::targetTransform(*a0,*a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_targetTransform, doc_QOpenGLTextureBlitter_targetTransform);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_sourceTransform, "sourceTransform(QRectF, QSize, QOpenGLTextureBlitter.Origin) -> QMatrix3x3");

extern "C" {static PyObject *meth_QOpenGLTextureBlitter_sourceTransform(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTextureBlitter_sourceTransform(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QRectF* a0;
        const  ::QSize* a1;
         ::QOpenGLTextureBlitter::Origin a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9E", sipType_QRectF, &a0, sipType_QSize, &a1, sipType_QOpenGLTextureBlitter_Origin, &a2))
        {
             ::QMatrix3x3*sipRes;

            sipRes = new  ::QMatrix3x3( ::QOpenGLTextureBlitter::sourceTransform(*a0,*a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QMatrix3x3,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_sourceTransform, doc_QOpenGLTextureBlitter_sourceTransform);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLTextureBlitter(void *, int);}
static void release_QOpenGLTextureBlitter(void *sipCppV, int)
{
    delete reinterpret_cast< ::QOpenGLTextureBlitter *>(sipCppV);
}


extern "C" {static void *array_QOpenGLTextureBlitter(Py_ssize_t);}
static void *array_QOpenGLTextureBlitter(Py_ssize_t sipNrElem)
{
    return new  ::QOpenGLTextureBlitter[sipNrElem];
}


extern "C" {static void array_delete_QOpenGLTextureBlitter(void *);}
static void array_delete_QOpenGLTextureBlitter(void *sipCpp)
{
    delete[] reinterpret_cast< ::QOpenGLTextureBlitter *>(sipCpp);
}


extern "C" {static void dealloc_QOpenGLTextureBlitter(sipSimpleWrapper *);}
static void dealloc_QOpenGLTextureBlitter(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLTextureBlitter(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_QOpenGLTextureBlitter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLTextureBlitter(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QOpenGLTextureBlitter *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLTextureBlitter();

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_QOpenGLTextureBlitter[] = {
    {sipName_bind, SIP_MLMETH_CAST(meth_QOpenGLTextureBlitter_bind), METH_VARARGS|METH_KEYWORDS, doc_QOpenGLTextureBlitter_bind},
    {sipName_blit, meth_QOpenGLTextureBlitter_blit, METH_VARARGS, doc_QOpenGLTextureBlitter_blit},
    {sipName_create, meth_QOpenGLTextureBlitter_create, METH_VARARGS, doc_QOpenGLTextureBlitter_create},
    {sipName_destroy, meth_QOpenGLTextureBlitter_destroy, METH_VARARGS, doc_QOpenGLTextureBlitter_destroy},
    {sipName_isCreated, meth_QOpenGLTextureBlitter_isCreated, METH_VARARGS, doc_QOpenGLTextureBlitter_isCreated},
    {sipName_release, meth_QOpenGLTextureBlitter_release, METH_VARARGS, doc_QOpenGLTextureBlitter_release},
    {sipName_setOpacity, meth_QOpenGLTextureBlitter_setOpacity, METH_VARARGS, doc_QOpenGLTextureBlitter_setOpacity},
    {sipName_setRedBlueSwizzle, meth_QOpenGLTextureBlitter_setRedBlueSwizzle, METH_VARARGS, doc_QOpenGLTextureBlitter_setRedBlueSwizzle},
    {sipName_sourceTransform, meth_QOpenGLTextureBlitter_sourceTransform, METH_VARARGS, doc_QOpenGLTextureBlitter_sourceTransform},
    {sipName_supportsExternalOESTarget, meth_QOpenGLTextureBlitter_supportsExternalOESTarget, METH_VARARGS, doc_QOpenGLTextureBlitter_supportsExternalOESTarget},
    {sipName_targetTransform, meth_QOpenGLTextureBlitter_targetTransform, METH_VARARGS, doc_QOpenGLTextureBlitter_targetTransform}
};

static sipEnumMemberDef enummembers_QOpenGLTextureBlitter[] = {
    {sipName_OriginBottomLeft, static_cast<int>( ::QOpenGLTextureBlitter::OriginBottomLeft), 180},
    {sipName_OriginTopLeft, static_cast<int>( ::QOpenGLTextureBlitter::OriginTopLeft), 180},
};

PyDoc_STRVAR(doc_QOpenGLTextureBlitter, "\1QOpenGLTextureBlitter()");


static pyqt5ClassPluginDef plugin_QOpenGLTextureBlitter = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLTextureBlitter = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTextureBlitter,
        SIP_NULLPTR,
        &plugin_QOpenGLTextureBlitter
    },
    {
        sipNameNr_QOpenGLTextureBlitter,
        {0, 0, 1},
        11, methods_QOpenGLTextureBlitter,
        2, enummembers_QOpenGLTextureBlitter,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QOpenGLTextureBlitter,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QOpenGLTextureBlitter,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QOpenGLTextureBlitter,
    SIP_NULLPTR,
    array_QOpenGLTextureBlitter,
    SIP_NULLPTR,
    release_QOpenGLTextureBlitter,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QOpenGLTextureBlitter,
    sizeof ( ::QOpenGLTextureBlitter),
};
