VR-Engage  2.2
Loading...
Searching...
No Matches
plugin.h File Reference
Include dependency graph for plugin.h:

Go to the source code of this file.

Namespaces

namespace  makVre
 

Functions

PLAYERSTATEATTRIBUTE_DLL bool initPlayerStationModule (makVre::DtPlayerStationApp *app)
 

Detailed Description

This header declares the plugin initialization function that VR-Engage calls when loading the plugin DLL. The function uses C linkage (extern "C") to prevent C++ name mangling and ensure VR-Engage can locate the function by name.

Function Documentation

◆ initPlayerStationModule()

PLAYERSTATEATTRIBUTE_DLL bool initPlayerStationModule ( makVre::DtPlayerStationApp * app)

Plugin initialization entry point for VR-Engage player station modules.

This function is called automatically by VR-Engage when the plugin DLL is loaded. It must be exported with C linkage (extern "C") to prevent C++ name mangling, which allows VR-Engage to locate the function by its exact name.

PATTERN: All VR-Engage player station plugins must export a function with this exact signature and name. The plugin system searches for "initPlayerStationModule" in loaded DLLs and calls it during plugin initialization.

Parameters
appPointer to the player station application instance. Used to access the component factory for registering custom components.
Returns
true if the plugin initialized successfully, false on failure

REUSABLE: This header structure is identical for all VR-Engage player station plugins.

References PLAYERSTATEATTRIBUTE_DLL.