VR-Engage
2.2
Loading...
Searching...
No Matches
plugin.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2025 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
//! \file plugin.h
7
//! \brief Plugin entry point declaration for playerStateAttribute example
8
//!
9
//! This header declares the plugin initialization function that VR-Engage calls
10
//! when loading the plugin DLL. The function uses C linkage (extern "C") to prevent
11
//! C++ name mangling and ensure VR-Engage can locate the function by name.
12
13
#include "
export.h
"
14
15
#pragma once
16
17
// Forward declare the Player Station App to avoid including the full header
18
// This keeps compilation dependencies minimal in the plugin interface
19
namespace
makVre
20
{
21
class
DtPlayerStationApp
;
22
}
23
24
//! \brief Plugin initialization entry point for VR-Engage player station modules.
25
//!
26
//! This function is called automatically by VR-Engage when the plugin DLL is loaded.
27
//! It must be exported with C linkage (extern "C") to prevent C++ name mangling,
28
//! which allows VR-Engage to locate the function by its exact name.
29
//!
30
//! PATTERN: All VR-Engage player station plugins must export a function with this
31
//! exact signature and name. The plugin system searches for "initPlayerStationModule"
32
//! in loaded DLLs and calls it during plugin initialization.
33
//!
34
//! \param app Pointer to the player station application instance. Used to access
35
//! the component factory for registering custom components.
36
//! \return true if the plugin initialized successfully, false on failure
37
//!
38
//! REUSABLE: This header structure is identical for all VR-Engage player station plugins.
39
extern
"C"
40
{
41
PLAYERSTATEATTRIBUTE_DLL
bool
initPlayerStationModule
(
makVre::DtPlayerStationApp
* app);
42
};
makVre::DtPlayerStationApp
Top-level class representing the VR-Engage application.
Definition
playerStationApp.h:163
initPlayerStationModule
COMMENTFRONTEND_DLL bool initPlayerStationModule(makVre::DtPlayerStationApp *app)
Entry point called by the player station framework to register the example frontend comment logic com...
export.h
PLAYERSTATEATTRIBUTE_DLL
#define PLAYERSTATEATTRIBUTE_DLL
Definition
export.h:15
makVre
Include export definitions for this library.
Definition
glsVreMessageUtil.h:49
Generated on 2026-01-13 from SVN revision 282860 - Copyright © 2005-2026 MAK Technologies. All Rights Reserved.