|
Blender V5.0
|
#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "DNA_scene_types.h"#include "DNA_windowmanager_types.h"#include "ED_screen.hh"#include "GHOST_C-api.h"#include "GPU_context.hh"#include "MEM_guardedalloc.h"#include "WM_api.hh"#include "wm_xr_intern.hh"Go to the source code of this file.
Classes | |
| struct | wmXrErrorHandlerData |
Functions | |
| static void | wm_xr_error_handler (const GHOST_XrError *error) |
| bool | wm_xr_init (wmWindowManager *wm) |
| void | wm_xr_exit (wmWindowManager *wm) |
| bool | wm_xr_events_handle (wmWindowManager *wm) |
XR Runtime Data | |
| wmXrRuntimeData * | wm_xr_runtime_data_create () |
| void | wm_xr_runtime_data_free (wmXrRuntimeData **runtime) |
All XR functionality is accessed through a GHOST_XrContext handle. The lifetime of this context also determines the lifetime of the OpenXR instance, which is the representation of the OpenXR runtime connection within the application.
Definition in file wm_xr.cc.
|
static |
Definition at line 39 of file wm_xr.cc.
References BKE_reports_clear(), error(), RPT_ERROR, wmWindowManager::runtime, wmXrData::runtime, wmXrRuntimeData::session_root_win, wmXrErrorHandlerData::wm, WM_global_report(), WM_report_banner_show(), wm_xr_runtime_data_free(), and wmWindowManager::xr.
Referenced by wm_xr_init().
| bool wm_xr_events_handle | ( | wmWindowManager * | wm | ) |
Definition at line 142 of file wm_xr.cc.
References wmXrRuntimeData::context, GHOST_XrEventsHandle(), wmXrData::runtime, wm_xr_session_actions_update(), WM_xr_session_is_ready(), and wmWindowManager::xr.
Referenced by wm_window_events_process().
| void wm_xr_exit | ( | wmWindowManager * | wm | ) |
Definition at line 132 of file wm_xr.cc.
References wmXrData::runtime, wm_xr_runtime_data_free(), and wmWindowManager::xr.
Referenced by wm_close_and_free().
| bool wm_xr_init | ( | wmWindowManager * | wm | ) |
Definition at line 56 of file wm_xr.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, wmXrRuntimeData::context, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), G, G_DEBUG_XR, G_DEBUG_XR_TIME, GHOST_XrContextCreate(), GHOST_XrErrorHandler(), GPU_backend_get_type(), GPU_BACKEND_OPENGL, GPU_BACKEND_VULKAN, GPU_DEVICE_NVIDIA, GPU_DRIVER_ANY, GPU_OS_WIN, GPU_type_matches(), wmXrData::runtime, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), wmXrErrorHandlerData::wm, wm_xr_disable_passthrough(), wm_xr_draw_view(), wm_xr_error_handler(), wm_xr_passthrough_enabled(), wm_xr_runtime_data_create(), wm_xr_session_gpu_binding_context_create(), wm_xr_session_gpu_binding_context_destroy(), and wmWindowManager::xr.
Referenced by wm_xr_session_toggle_exec().
| wmXrRuntimeData * wm_xr_runtime_data_create | ( | ) |
| void wm_xr_runtime_data_free | ( | wmXrRuntimeData ** | runtime | ) |
Definition at line 170 of file wm_xr.cc.
References ED_area_offscreen_free(), G_MAIN, GHOST_XrContextDestroy(), wmWindow::handlers, MEM_SAFE_FREE, WM_event_remove_handlers_by_area(), WM_xr_actionmaps_clear(), wm_xr_session_data_free(), and wm_xr_session_root_window_or_fallback_get().
Referenced by wm_xr_error_handler(), wm_xr_exit(), and wm_xr_session_exit_cb().