1// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_QGEOMETRYRENDERER_P_H
5#define QT3DRENDER_QGEOMETRYRENDERER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DCore/private/qgeometryfactory_p.h>
19#include <Qt3DCore/private/qboundingvolume_p.h>
20#include <Qt3DRender/qgeometryrenderer.h>
21#include <Qt3DRender/private/qt3drender_global_p.h>
22#include <memory>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27
28class Q_3DRENDERSHARED_PRIVATE_EXPORT QGeometryRendererPrivate : public Qt3DCore::QBoundingVolumePrivate
29{
30public:
31 QGeometryRendererPrivate();
32 ~QGeometryRendererPrivate();
33
34 Q_DECLARE_PUBLIC(QGeometryRenderer)
35
36 void setView(Qt3DCore::QGeometryView *view) override;
37
38 int m_instanceCount;
39 int m_vertexCount;
40 int m_indexOffset;
41 int m_firstInstance;
42 int m_firstVertex;
43 int m_indexBufferByteOffset;
44 int m_restartIndexValue;
45 int m_verticesPerPatch;
46 bool m_primitiveRestart;
47 Qt3DCore::QGeometry *m_geometry;
48 QGeometryRenderer::PrimitiveType m_primitiveType;
49 Qt3DCore::QGeometryFactoryPtr m_geometryFactory;
50 float m_sortIndex;
51};
52
53} // namespace Qt3DRender
54
55QT_END_NAMESPACE
56
57
58#endif // QT3DRENDER_QGEOMETRYRENDERER_P_H
59
60

source code of qt3d/src/render/geometry/qgeometryrenderer_p.h