QSSGCameraHelpers Class

Class containing helper functions for getting camera data used for rendering. 更多...

頭: #include <QSSGCameraHelpers>
Since: Qt 6.7

靜態公共成員

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

詳細描述

成員函數文檔編製

[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

globalTransform

另請參閱 QSSGRenderHelpers::createRenderables ().