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
QSSGCameraHelpers Class Reference

\inmodule QtQuick3D More...

#include <qssgrenderhelpers.h>

+ Collaboration diagram for QSSGCameraHelpers:

Static Public Member Functions

static QMatrix4x4 getViewProjectionMatrix (const QSSGCameraId cameraId, const QMatrix4x4 *globalTransform=nullptr)
 Get the projection matrix for cameraId.
 

Detailed Description

\inmodule QtQuick3D

Since
6.7

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

Definition at line 93 of file qssgrenderhelpers.h.

Member Function Documentation

◆ getViewProjectionMatrix()

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

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

See also
QSSGRenderHelpers::createRenderables()

Definition at line 378 of file qssgrenderhelpers.cpp.

References QSSGRenderCamera::calculateViewProjectionMatrix(), QSSGRenderGraphObject::isCamera(), QSSG_ASSERT, and Qt::Uninitialized.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: