Skip to main content
Version: 12 Dec 2024

MLGraphicsClipExtentsInfo

Module: Graphics

The static clip extents defined for all possible eye positions. More...

#include <ml_graphics.h>

Public Attributes

TypeName
MLGraphicsVirtualCameraNamevirtual_camera_name
MLMat4fprojection
The projection matrix, defined with infinite far clip plane distance. If the client is using a different projection model the matrix will need to be adjusted to match the client model prior to frustum culling.
MLTransformtransform

Detailed Description

struct MLGraphicsClipExtentsInfo;

The static clip extents defined for all possible eye positions.

Defines the conservative clip extents for the camera name that can be used for early update frustum culling in the client update path (prior to calling MLGraphicsBeginFrameEx).

Note: The client will need to obtain a headpose to combine with the provided matrices (transform and projection) to define the frustum. The general definition for camera from world (for the specified camera name) is MATprojection inv(MATtransform) inv(MATheadpose) for RHS multiplication.

Deprecated

Deprecated since 1.6.0. Scheduled for removal.


Public Attributes Documentation

virtual_camera_name

MLGraphicsVirtualCameraName virtual_camera_name;
TypeDescription
MLGraphicsVirtualCameraNameThe metadata name associated with each virtual camera.

The virtual camera meta data name.


projection

MLMat4f projection;

The projection matrix, defined with infinite far clip plane distance. If the client is using a different projection model the matrix will need to be adjusted to match the client model prior to frustum culling.


transform

MLTransform transform;

The camera to world transform (i.e. local space relative to the head).