Plugin developers, Beta 5 includes a few new VR-specific APIs in the XPLMDisplay header.
The complete list of VR-specific APIs is now:
- A two-step process for allowing widget-based plugins to go to VR:
- A new positioning mode to pass to XPLMSetWindowPositioningMode(): xplm_WindowVR
- Two new messages sent to your XPluginReceiveMessage() callback, useful for knowing when to move your window in and out of VR:
I’ve updated the VR sample plugin to take advantage of all the new stuff here, minus the widget API—really, once you enable native widget windows, your widget window becomes “just another XPLM window” as far as the display APIs are concerned.