本页内容

QSSGCameraHelpers Class

包含用于获取渲染所需相机数据的辅助函数的类。更多内容...

Header: #include <qssgrenderhelpers.h>
Since: Qt 6.7

静态公共成员

QMatrix4x4 getViewProjectionMatrix(const QSSGCameraId cameraId, const QMatrix4x4 *globalTransform = nullptr)

详细说明

成员函数文档

[static] QMatrix4x4 QSSGCameraHelpers::getViewProjectionMatrix(const QSSGCameraId cameraId, const QMatrix4x4 *globalTransform = nullptr)

获取cameraId 的投影矩阵。计算投影矩阵时,可提供一个可选的transform参数,以替代摄像机的全局变换。

返回以下对象的投影矩阵:cameraId

globalTransform

另请参阅 QSSGRenderHelpers::createRenderables()。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.