// qgeometryrenderer.sip generated by MetaSIP
//
// This file is part of the Qt3DRender Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
// 
// This file is part of PyQt6-3D.
// 
// 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.


namespace Qt3DRender
{
%TypeHeaderCode
#include <qgeometryrenderer.h>
%End

    class QGeometryRenderer : public Qt3DCore::QBoundingVolume
    {
%TypeHeaderCode
#include <qgeometryrenderer.h>
%End

    public:
        explicit QGeometryRenderer(Qt3DCore::QNode *parent /TransferThis/ = 0);
        virtual ~QGeometryRenderer();

        enum PrimitiveType
        {
            Points,
            Lines,
            LineLoop,
            LineStrip,
            Triangles,
            TriangleStrip,
            TriangleFan,
            LinesAdjacency,
            TrianglesAdjacency,
            LineStripAdjacency,
            TriangleStripAdjacency,
            Patches,
        };

        int instanceCount() const;
        int vertexCount() const;
        int indexOffset() const;
        int firstInstance() const;
        int firstVertex() const;
        int restartIndexValue() const;
        int verticesPerPatch() const;
        bool primitiveRestartEnabled() const;
        Qt3DCore::QGeometry *geometry() const;
        Qt3DRender::QGeometryRenderer::PrimitiveType primitiveType() const;
        int indexBufferByteOffset() const;

    public slots:
        void setInstanceCount(int instanceCount);
        void setVertexCount(int vertexCount);
        void setIndexOffset(int indexOffset);
        void setFirstInstance(int firstInstance);
        void setFirstVertex(int firstVertex);
        void setRestartIndexValue(int index);
        void setVerticesPerPatch(int verticesPerPatch);
        void setPrimitiveRestartEnabled(bool enabled);
        void setGeometry(Qt3DCore::QGeometry *geometry);
        void setPrimitiveType(Qt3DRender::QGeometryRenderer::PrimitiveType primitiveType);
        void setIndexBufferByteOffset(int offset);

    signals:
        void instanceCountChanged(int instanceCount);
        void vertexCountChanged(int vertexCount);
        void indexOffsetChanged(int indexOffset);
        void firstInstanceChanged(int firstInstance);
        void firstVertexChanged(int firstVertex);
        void restartIndexValueChanged(int restartIndexValue);
        void verticesPerPatchChanged(int verticesPerPatch);
        void primitiveRestartEnabledChanged(bool primitiveRestartEnabled);
        void geometryChanged(Qt3DCore::QGeometry *geometry);
        void primitiveTypeChanged(Qt3DRender::QGeometryRenderer::PrimitiveType primitiveType /ScopesStripped=2/);
        void indexBufferByteOffsetChanged(int offset);

    public:
%If (Qt3D_6_1_0 -)
        float sortIndex() const;
%End

    public slots:
%If (Qt3D_6_1_0 -)
        void setSortIndex(float sortIndex);
%End

    signals:
%If (Qt3D_6_1_0 -)
        void sortIndexChanged(float sortIndex);
%End
    };
};
