/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.5.0
 *
 * Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt3D.
 * 
 * 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 "sipAPIQt3DRender.h"

#line 156 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qvector.sip"
#include <QRenderTargetOutput>
#line 29 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQVector0100Qt3DRenderQRenderTargetOutputAttachmentPoint.cpp"

#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstractfunctor.sip"
#include <qabstractfunctor.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstractlight.sip"
#include <qabstractlight.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstractraycaster.sip"
#include <qabstractraycaster.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstracttexture.sip"
#include <qabstracttexture.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstracttextureimage.sip"
#include <qabstracttextureimage.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qalphacoverage.sip"
#include <qalphacoverage.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qalphatest.sip"
#include <qalphatest.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qattribute.sip"
#include <qattribute.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qblendequation.sip"
#include <qblendequation.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qblendequationarguments.sip"
#include <qblendequationarguments.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qblitframebuffer.sip"
#include <qblitframebuffer.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qbuffer.sip"
#include <qbuffer.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qbufferdatagenerator.sip"
#include <qbufferdatagenerator.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qcamera.sip"
#include <qcamera.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qcameralens.sip"
#include <qcameralens.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qcameraselector.sip"
#include <qcameraselector.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qclearbuffers.sip"
#include <qclearbuffers.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qclipplane.sip"
#include <qclipplane.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qcomputecommand.sip"
#include <qcomputecommand.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qcolormask.sip"
#include <qcolormask.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qcullface.sip"
#include <qcullface.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qdepthrange.sip"
#include <qdepthrange.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qdepthtest.sip"
#include <qdepthtest.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qdirectionallight.sip"
#include <qdirectionallight.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qdispatchcompute.sip"
#include <qdispatchcompute.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qdithering.sip"
#include <qdithering.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qeffect.sip"
#include <qeffect.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qenvironmentlight.sip"
#include <qenvironmentlight.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qfilterkey.sip"
#include <qfilterkey.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qframegraphnode.sip"
#include <qframegraphnode.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qfrontface.sip"
#include <qfrontface.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qfrustumculling.sip"
#include <qfrustumculling.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qgeometry.sip"
#include <qgeometry.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qgeometryfactory.sip"
#include <qgeometryfactory.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qgeometryrenderer.sip"
#include <qgeometryrenderer.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qgraphicsapifilter.sip"
#include <qgraphicsapifilter.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qlayer.sip"
#include <qlayer.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qlayerfilter.sip"
#include <qlayerfilter.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qlevelofdetail.sip"
#include <qlevelofdetail.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qlevelofdetailboundingsphere.sip"
#include <qlevelofdetailboundingsphere.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qlevelofdetailswitch.sip"
#include <qlevelofdetailswitch.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qlinewidth.sip"
#include <qlinewidth.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qmaterial.sip"
#include <qmaterial.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qmemorybarrier.sip"
#include <qmemorybarrier.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qmesh.sip"
#include <qmesh.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qmultisampleantialiasing.sip"
#include <qmultisampleantialiasing.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qnodepthmask.sip"
#include <qnodepthmask.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qnodraw.sip"
#include <qnodraw.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qnopicking.sip"
#include <qnopicking.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qobjectpicker.sip"
#include <qobjectpicker.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpaintedtextureimage.sip"
#include <qpaintedtextureimage.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qparameter.sip"
#include <qparameter.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpickevent.sip"
#include <qpickevent.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpickingsettings.sip"
#include <qpickingsettings.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpicklineevent.sip"
#include <qpicklineevent.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpickpointevent.sip"
#include <qpickpointevent.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpicktriangleevent.sip"
#include <qpicktriangleevent.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpointlight.sip"
#include <qpointlight.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpointsize.sip"
#include <qpointsize.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qpolygonoffset.sip"
#include <qpolygonoffset.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qproximityfilter.sip"
#include <qproximityfilter.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrastermode.sip"
#include <qrastermode.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qraycaster.sip"
#include <qraycaster.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qraycasterhit.sip"
#include <qraycasterhit.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrenderaspect.sip"
#include <qrenderaspect.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendercapabilities.sip"
#include <qrendercapabilities.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendercapture.sip"
#include <qrendercapture.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrenderpass.sip"
#include <qrenderpass.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrenderpassfilter.sip"
#include <qrenderpassfilter.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendersettings.sip"
#include <qrendersettings.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrenderstate.sip"
#include <qrenderstate.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrenderstateset.sip"
#include <qrenderstateset.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendersurfaceselector.sip"
#include <qrendersurfaceselector.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendertarget.sip"
#include <qrendertarget.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendertargetoutput.sip"
#include <qrendertargetoutput.h>
#line 32 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qrendertargetoutput.sip"
#include <qrendertargetoutput.h>
#line 183 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQVector0100Qt3DRenderQRenderTargetOutputAttachmentPoint.cpp"


extern "C" {static void assign_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(void *, Py_ssize_t, void *);}
static void assign_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(Py_ssize_t);}
static void *array_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(Py_ssize_t sipNrElem)
{
    return new  ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(const void *, Py_ssize_t);}
static void *copy_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new  ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint>(reinterpret_cast<const  ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(void *, int);}
static void release_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(void *sipCppV, int)
{
     ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *sipCpp = reinterpret_cast< ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *>(sipCppV);
    delete sipCpp;
}



extern "C" {static int convertTo_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(PyObject *sipPy, void **sipCppPtrV, int *sipIsErr, PyObject *sipTransferObj)
{
     ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> **sipCppPtr = reinterpret_cast< ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> **>(sipCppPtrV);

#line 184 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint> *ql = new QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint>;

    for (Py_ssize_t i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int v = sipConvertToEnum(itm, sipType_Qt3DRender_QRenderTargetOutput_AttachmentPoint);

        if (PyErr_Occurred())
        {
            PyErr_Format(PyExc_TypeError,
                    "index %zd has type '%s' but 'QRenderTargetOutput.AttachmentPoint' is expected",
                    i, sipPyTypeName(Py_TYPE(itm)));

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        ql->append(
                static_cast<Qt3DRender::QRenderTargetOutput::AttachmentPoint>(
                        v));

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = ql;

    return sipGetState(sipTransferObj);
#line 292 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQVector0100Qt3DRenderQRenderTargetOutputAttachmentPoint.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint(void *sipCppV, PyObject *)
{
    ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *sipCpp = reinterpret_cast< ::QVector< ::Qt3DRender::QRenderTargetOutput::AttachmentPoint> *>(sipCppV);

#line 160 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *eobj = sipConvertFromEnum(sipCpp->at(i),
                sipType_Qt3DRender_QRenderTargetOutput_AttachmentPoint);

        if (!eobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SetItem(l, i, eobj);
    }

    return l;
#line 323 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQVector0100Qt3DRenderQRenderTargetOutputAttachmentPoint.cpp"
}


sipMappedTypeDef sipTypeDef_Qt3DRender_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint,
    array_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint,
    copy_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint,
    release_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint,
    convertTo_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint,
    convertFrom_QVector_0100Qt3DRender_QRenderTargetOutput_AttachmentPoint
};
