Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qssgrenderinstancetable_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
5#ifndef QSSGRENDERINDEXTABLE_P_H
6#define QSSGRENDERINDEXTABLE_P_H
7
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtQuick3DRuntimeRender/private/qssgrendernode_p.h>
21
23
24struct Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderInstanceTableEntry {
30};
31
32struct Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderInstanceTable : public QSSGRenderNode
33{
35
36 int count() const { return instanceCount; }
37 qsizetype dataSize() const { return table.size(); }
38 const void *constData() const { return table.constData(); }
39 void setData(const QByteArray &data, int count, int stride) { table = data; instanceCount = count; instanceStride = stride; ++instanceSerial; }
41 int serial() const { return instanceSerial; }
42 int stride() const { return instanceStride; }
43 bool hasTransparency() { return transparency; }
44 void setHasTransparency( bool t) { transparency = t; }
45 void setDepthSorting(bool enable) { depthSorting = enable; }
46 bool isDepthSortingEnabled() { return depthSorting; }
47 QMatrix4x4 getTransform(int index) const;
48
49private:
50 int instanceCount = 0;
51 int instanceSerial = 0;
52 int instanceStride = 0;
53 bool transparency = false;
54 bool depthSorting = false;
56};
57
59
60#endif // QSSGRENDERINDEXTABLE_P_H
\inmodule QtCore
Definition qbytearray.h:57
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition qmatrix4x4.h:25
The QVector4D class represents a vector or vertex in 4D space.
Definition qvectornd.h:330
Combined button and popup list for selecting options.
static int instanceCount
GLuint index
[2]
GLenum GLenum GLsizei count
const void GLsizei GLsizei stride
GLboolean enable
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLdouble GLdouble t
Definition qopenglext.h:243
GLenum GLenum GLsizei void * table
ptrdiff_t qsizetype
Definition qtypes.h:70
void setData(const QByteArray &data, int count, int stride)
Definition moc.h:24