Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qssgrenderinstancetable.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
5
7{
8 Q_ASSERT(index < instanceCount);
9 Q_ASSERT(table.size() == instanceStride * instanceCount);
10 auto *entry = reinterpret_cast<const QSSGRenderInstanceTableEntry*>(table.constData() + index * instanceStride);
11
13 res.setRow(0, entry->row0);
14 res.setRow(1, entry->row1);
15 res.setRow(2, entry->row2);
16 res.setRow(3, { 0, 0, 0, 1 });
17 return res;
18}
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition qmatrix4x4.h:25
void setRow(int index, const QVector4D &value)
Sets the elements of row index to the components of value.
Definition qmatrix4x4.h:281
GLuint index
[2]
GLuint res
GLuint entry
GLenum GLenum GLsizei void * table
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
QMatrix4x4 getTransform(int index) const