1// Copyright (C) 2014 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 QT3DCORE_QATTRIBUTE_P_H
5#define QT3DCORE_QATTRIBUTE_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/QAttribute>
19#include <Qt3DCore/QBuffer>
20#include <private/qnode_p.h>
21#include <private/qt3dcore_global_p.h>
22
23QT_BEGIN_NAMESPACE
24
25namespace Qt3DCore {
26
27class QAttribute;
28
29class Q_3DCORE_PRIVATE_EXPORT QAttributePrivate : public Qt3DCore::QNodePrivate
30{
31public:
32 Q_DECLARE_PUBLIC(QAttribute)
33
34 QAttributePrivate();
35 void update() override;
36
37 static QAttributePrivate *get(QAttribute *q);
38
39 QBuffer *m_buffer;
40 QString m_name;
41 QAttribute::VertexBaseType m_vertexBaseType;
42 uint m_vertexSize;
43 uint m_count;
44 uint m_byteStride;
45 uint m_byteOffset;
46 uint m_divisor;
47 QAttribute::AttributeType m_attributeType;
48 bool m_dirty;
49};
50
51} // Qt3DCore
52
53QT_END_NAMESPACE
54
55#endif // QT3DCORE_QATTRIBUTE_P_H
56

source code of qt3d/src/core/geometry/qattribute_p.h