版本

menu_open
AK.Wwise::Plugin::PluginInfoGenerator< PluginT > 模板结构体 参考

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. 更多...
 

Public 类型

enum  : size_t { k_interfaceCount = CountInterfaces() }
 

Public 成员函数

 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
 

静态 Public 成员函数

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 InterfaceArrayItemGenerateInterfaceArray (InterfaceArrayItem out_interfaces[k_interfaceCount])
 
static InterfaceArrayItemInstantiate (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. 更多...
 

Public 属性

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. 更多...
 

详细描述

template<typename PluginT>
struct AK.Wwise::Plugin::PluginInfoGenerator< PluginT >

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.

模板参数
PluginTThe plug-in class that needs to be instantiated in order to use that plug-in.

在文件 PluginInfoGenerator.h327 行定义.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅