VR-Engage  2.3
Loading...
Searching...
No Matches
vreSpectatorFrontend Library API Changes

This page covers the spectator overlay and module lifecycle in vreSpectatorFrontend. The observer state handles added to other spectator headers do not change their public or protected methods.

Breaking changes

Persistent notification type changed

DtSpectatorOverlay::myPersistentNotification changed its protected type in vreSpectatorFrontend/spectatorOverlay.h:

// 2.2
std::shared_ptr<DtPlayerStationPersistentNotification> myPersistentNotification;
// 2.3
std::shared_ptr<DtVreHeaderFooterUI> myPersistentNotification;

Update derived overlays that access or replace this member. Include vrePlayerStation/vreHeaderFooterUI.h when calling methods on the new type. Code that stores the old pointer type cannot assign this member directly. DtSpectatorOverlay::isSpectator() keeps its signature, but now returns false for a minion application. Review overrides that decide whether to show the spectator overlay.

Additions

vreSpectatorFrontend/plugin.h adds the exported module shutdown entry point:

Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
VRECOMMONCOMPONENTS_DLL void shutdownPlayerStationModule(makVre::DtPlayerStationApp *app)
Shuts down the vreCommonComponents module.
#define SPECTATOR_DLL
Export/import macro for non-Windows platforms (empty)
Definition export.h:25

Call shutdown during application teardown to remove the spectator creators registered by initPlayerStationModule(makVre::DtPlayerStationApp*). The current frontend loader retains recognized plugin libraries until process exit. Do not assume that removing creators makes manual unloading safe. See Frontend plugin lifecycle.