Wwise SDK 2022.1.16
|
C++ PluginInfo Generator. [詳解]
#include <PluginInfoGenerator.h>
クラス | |
struct | GenerateConstructor |
Generates the constructor for our particular type [詳解] | |
struct | GenerateConstructorArray |
Recursively generates the constructors and interface pointer updater for all the Interfaces. [詳解] | |
struct | InterfaceInfo |
Compile-time dictionary about a particular interface type. [詳解] | |
公開型 | |
enum | : size_t { k_interfaceCount = CountInterfaces() } |
公開メンバ関数 | |
PluginInfoGenerator (PluginRegistration *in_pluginRegistration, uint32_t in_pluginFlags=0) | |
PluginInfoGenerator (const AkUInt32 *in_companyID, const AkUInt32 *in_pluginID, const AkPluginType *in_pluginType, uint32_t in_pluginFlags=0) | |
~PluginInfoGenerator ()=default | |
静的公開メンバ関数 | |
template<InterfaceType in_interface = (InterfaceType)(AK_WWISE_PLUGIN_INTERFACE_TYPE_NUM - 1)> | |
static constexpr size_t | CountInterfaces () |
Count the number of interfaces we are currently using. [詳解] | |
template<InterfaceType in_interfaceType> | |
static constexpr InterfaceArrayItem | GenerateInterface () |
Generates the InterfaceArrayItem for our particular type. [詳解] | |
template<InterfaceType in_interfaceType> | |
static constexpr void | GenerateInterfaceArray (InterfaceArrayItem out_interfaces[k_interfaceCount], int in_count, InterfaceArrayItem) |
Recursively generates an interface array of all the Interfaces pointers. [詳解] | |
static constexpr InterfaceArrayItem * | GenerateInterfaceArray (InterfaceArrayItem out_interfaces[k_interfaceCount]) |
static InterfaceArrayItem * | Instantiate (PluginInfo *in_pluginInfo) |
Plug-in instance constructor, as shared with the host. [詳解] | |
static void | Disembody (InterfaceArrayItem *in_instance) |
Plug-in instance destructor, as shared to the host. [詳解] | |
公開変数類 | |
InterfaceArrayItem | m_interfaceArray [k_interfaceCount] |
Array of all used interfaces for the plug-in. [詳解] | |
PluginInfo | m_pluginInfo |
The unique m_pluginInfo used in the ak_wwise_plugin_container for that particular plug-in. [詳解] | |
C++ PluginInfo Generator.
Retrieves the list of plug-in interfaces required by a plug-in through derivation, and automatically creates a related ak_wwise_plugin_info structure.
Compared to a manually generated C version, the generated structure is done through a function that fills all the required data. Since it's a static global function called only once, and contains only value stores, the cost is, so far, quite minimal.
PluginT | The plug-in class that needs to be instantiated in order to use that plug-in. |
PluginInfoGenerator.h の 327 行目に定義があります。