QSSGCameraHelpers Class

Class containing helper functions for getting camera data used for rendering. More...

Header: #include <QSSGCameraHelpers>
Since: Qt 6.7

Static Public Members

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

Detailed Description

Member Function Documentation

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

Get the projection matrix for cameraId. An optional transform argument can be given to be used instead of the cameras global transform when calculating the projection matrix.

Returns projection matrix for cameraId


See also QSSGRenderHelpers::createRenderables().

© 2024 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.