Blender V5.3
blender::wmXrViewfinderState Struct Reference

#include <wm_xr_intern.hh>

Public Attributes

float capture_position [3]
float capture_orientation_quat [4]
GPUOffScreen * offscreen
GPUViewport * viewport
gpu::Texture * backside_logo_texture
Camera * render_cam_data_id
double smoothing_delta_t
double last_flash_trigger_time
double last_focus_hit_time
bool last_focus_hit_success
bool capture_dof_enabled
float capture_lens_focal
float capture_dof_distance
float capture_dof_fstop
bool playback_show_active_capture_in_space_enabled
eXrViewfinderMode active_mode
eXrViewfinderLiveAction active_action_live
eXrViewfinderPlaybackAction active_action_playback
eXrViewfinderConfirmAction active_action_confirm

Static Public Attributes

static constexpr int view_resolution = 800
static constexpr float accent_color [4] = {0.26f, 0.26f, 0.26f, 0.2f}
static constexpr float xr_ui_unit_fac = 0.05f

Detailed Description

Definition at line 39 of file wm_xr_intern.hh.

Member Data Documentation

◆ accent_color

float blender::wmXrViewfinderState::accent_color[4] = {0.26f, 0.26f, 0.26f, 0.2f}
staticconstexpr

Transparent accent color used for UI outlines and the backside logo.

Definition at line 78 of file wm_xr_intern.hh.

Referenced by blender::wm_xr_viewfinder_ui_draw_background(), and blender::wm_xr_viewfinder_ui_draw_backside_logo_texture().

◆ active_action_confirm

◆ active_action_live

◆ active_action_playback

◆ active_mode

eXrViewfinderMode blender::wmXrViewfinderState::active_mode

Active modes, concept differs from the rest of the Blender UI.

Definition at line 66 of file wm_xr_intern.hh.

Referenced by blender::WM_xr_session_state_viewfinder_active_mode_get(), and blender::WM_xr_session_state_viewfinder_active_mode_set().

◆ backside_logo_texture

gpu::Texture* blender::wmXrViewfinderState::backside_logo_texture

Definition at line 46 of file wm_xr_intern.hh.

◆ capture_dof_distance

float blender::wmXrViewfinderState::capture_dof_distance

◆ capture_dof_enabled

bool blender::wmXrViewfinderState::capture_dof_enabled

◆ capture_dof_fstop

float blender::wmXrViewfinderState::capture_dof_fstop

◆ capture_lens_focal

float blender::wmXrViewfinderState::capture_lens_focal

◆ capture_orientation_quat

float blender::wmXrViewfinderState::capture_orientation_quat[4]

◆ capture_position

float blender::wmXrViewfinderState::capture_position[3]

Internal Runtime values.

Definition at line 41 of file wm_xr_intern.hh.

Referenced by blender::WM_xr_session_state_viewfinder_location_get().

◆ last_flash_trigger_time

double blender::wmXrViewfinderState::last_flash_trigger_time

Runtime values set by RNA methods called from Python.

Definition at line 52 of file wm_xr_intern.hh.

Referenced by blender::WM_xr_session_state_viewfinder_trigger_flash().

◆ last_focus_hit_success

bool blender::wmXrViewfinderState::last_focus_hit_success

◆ last_focus_hit_time

double blender::wmXrViewfinderState::last_focus_hit_time

◆ offscreen

GPUOffScreen* blender::wmXrViewfinderState::offscreen

Definition at line 44 of file wm_xr_intern.hh.

◆ playback_show_active_capture_in_space_enabled

bool blender::wmXrViewfinderState::playback_show_active_capture_in_space_enabled

◆ render_cam_data_id

Camera* blender::wmXrViewfinderState::render_cam_data_id

Definition at line 48 of file wm_xr_intern.hh.

◆ smoothing_delta_t

double blender::wmXrViewfinderState::smoothing_delta_t

◆ view_resolution

int blender::wmXrViewfinderState::view_resolution = 800
staticconstexpr

Rendered view resolution. Using a low resolution helps with performances, and also increases the displayed overlay line width.

Definition at line 76 of file wm_xr_intern.hh.

Referenced by blender::WM_xr_session_state_viewfinder_init(), and blender::wm_xr_viewfinder_render_view().

◆ viewport

GPUViewport* blender::wmXrViewfinderState::viewport

Definition at line 45 of file wm_xr_intern.hh.

◆ xr_ui_unit_fac

float blender::wmXrViewfinderState::xr_ui_unit_fac = 0.05f
staticconstexpr

Factor used to size UI widgets in XR world space. Going from scene to UI units.

Definition at line 80 of file wm_xr_intern.hh.

Referenced by blender::wm_xr_viewfinder_draw(), and blender::wm_xr_viewfinder_get_capture_mat().


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