Blender V5.0
wmXrDrawData Struct Reference

#include <wm_xr_intern.hh>

Public Attributes

struct Scenescene
struct Depsgraph * depsgraph
wmXrDataxr_data
wmXrSurfaceDatasurface_data
GHOST_XrPose base_pose
float base_scale
float eye_position_ofs [3]

Detailed Description

Definition at line 120 of file wm_xr_intern.hh.

Member Data Documentation

◆ base_pose

GHOST_XrPose wmXrDrawData::base_pose

The pose (location + rotation) to which eye deltas will be applied to when drawing (world space). With positional tracking enabled, it should be the same as the base pose, when disabled it also contains a location delta from the moment the option was toggled.

Definition at line 130 of file wm_xr_intern.hh.

Referenced by wm_xr_draw_matrices_create(), wm_xr_session_draw_data_populate(), and wm_xr_session_state_update().

◆ base_scale

float wmXrDrawData::base_scale

Base scale (uniform, world space).

Definition at line 132 of file wm_xr_intern.hh.

Referenced by wm_xr_draw_matrices_create(), wm_xr_session_draw_data_populate(), and wm_xr_session_state_update().

◆ depsgraph

struct Depsgraph* wmXrDrawData::depsgraph

Definition at line 122 of file wm_xr_intern.hh.

Referenced by wm_xr_draw_view(), and wm_xr_session_draw_data_populate().

◆ eye_position_ofs

float wmXrDrawData::eye_position_ofs[3]

Offset to subtract from the OpenXR eye and viewer pose to get the wanted effective pose (e.g. a pose exactly at the landmark position).

Definition at line 135 of file wm_xr_intern.hh.

Referenced by wm_xr_draw_matrices_create(), wm_xr_session_draw_data_update(), and wm_xr_session_state_update().

◆ scene

struct Scene* wmXrDrawData::scene

Definition at line 121 of file wm_xr_intern.hh.

Referenced by wm_xr_draw_view(), and wm_xr_session_draw_data_populate().

◆ surface_data

wmXrSurfaceData* wmXrDrawData::surface_data

Definition at line 125 of file wm_xr_intern.hh.

Referenced by wm_xr_draw_view(), and wm_xr_session_draw_data_populate().

◆ xr_data


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