102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_Util_WorldView Struct Reference

#include <dttr_util_worldview.h>

Data Fields

bool valid
DTTR_PCDOGS_T_Math_Vec3I32 eye
 The camera eye is logical world XYZ, already converted from XZY storage.
DTTR_PCDOGS_T_Math_Vec3I16 forward
 The view basis vectors (Q12).
DTTR_PCDOGS_T_Math_Vec3I16 right
DTTR_PCDOGS_T_Math_Vec3I16 up
int32_t near_fp
 The near plane in world fixed point.
DTTR_PCDOGS_T_Math_Vec2F center
 The screen center and per-axis focal lengths are in draw-space pixels.
DTTR_PCDOGS_T_Math_Vec2F focal

Detailed Description

Cached camera frame in screen-draw space. Build it once per frame with DTTR_Util_WorldView_Refresh and reuse it for each projection.

Definition at line 40 of file dttr_util_worldview.h.

Field Documentation

◆ center

DTTR_PCDOGS_T_Math_Vec2F DTTR_Util_WorldView::center

The screen center and per-axis focal lengths are in draw-space pixels.

Definition at line 55 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ViewToScreen().

◆ eye

DTTR_PCDOGS_T_Math_Vec3I32 DTTR_Util_WorldView::eye

The camera eye is logical world XYZ, already converted from XZY storage.

Definition at line 44 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ToView().

◆ focal

DTTR_PCDOGS_T_Math_Vec2F DTTR_Util_WorldView::focal

Definition at line 56 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ViewToScreen().

◆ forward

DTTR_PCDOGS_T_Math_Vec3I16 DTTR_Util_WorldView::forward

The view basis vectors (Q12).

Definition at line 47 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ToView().

◆ near_fp

int32_t DTTR_Util_WorldView::near_fp

The near plane in world fixed point.

Definition at line 52 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ProjectPoint(), and DTTR_Util_WorldView_ProjectPolygon().

◆ right

DTTR_PCDOGS_T_Math_Vec3I16 DTTR_Util_WorldView::right

Definition at line 48 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ToView().

◆ up

DTTR_PCDOGS_T_Math_Vec3I16 DTTR_Util_WorldView::up

Definition at line 49 of file dttr_util_worldview.h.

Referenced by DTTR_Util_WorldView_ToView().

◆ valid


The documentation for this struct was generated from the following file: