Blender
V3.3
|
#include "BKE_global.h"
#include "BKE_idprop.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "ED_screen.h"
#include "GHOST_C-api.h"
#include "GPU_platform.h"
#include "MEM_guardedalloc.h"
#include "WM_api.h"
#include "wm_surface.h"
#include "wm_xr_intern.h"
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) |
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.c.
|
static |
Definition at line 40 of file wm_xr.c.
References BKE_reports_clear(), error(), wmWindowManager::reports, RPT_ERROR, wmXrData::runtime, wmXrErrorHandlerData::wm, WM_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 122 of file wm_xr.c.
References wmXrRuntimeData::context, GHOST_XrEventsHandle(), wmXrData::runtime, wm_xr_session_actions_update(), WM_xr_session_is_ready(), and wmWindowManager::xr.
Referenced by wm_window_process_events().
void wm_xr_exit | ( | wmWindowManager * | wm | ) |
Definition at line 111 of file wm_xr.c.
References IDP_FreeProperty(), NULL, View3DShading::prop, wmXrData::runtime, wmXrData::session_settings, XrSessionSettings::shading, wm_xr_runtime_data_free(), and wmWindowManager::xr.
Referenced by wm_close_and_free().
bool wm_xr_init | ( | wmWindowManager * | wm | ) |
Definition at line 55 of file wm_xr.c.
References ARRAY_SIZE, BLI_assert, blender::compositor::context, wmXrRuntimeData::context, G, G_DEBUG_XR, G_DEBUG_XR_TIME, GHOST_XrContextCreate(), GHOST_XrErrorHandler(), GPU_DEVICE_NVIDIA, GPU_DRIVER_ANY, GPU_OS_WIN, GPU_type_matches(), wmXrData::runtime, wmXrErrorHandlerData::wm, wm_xr_draw_view(), wm_xr_error_handler(), 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 | ) |
void wm_xr_runtime_data_free | ( | wmXrRuntimeData ** | runtime | ) |
Definition at line 150 of file wm_xr.c.
References blender::compositor::context, ED_area_offscreen_free(), G_MAIN, GHOST_XrContextDestroy(), MEM_SAFE_FREE, NULL, 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().