基本版本控制插件示例
此版本控制插件通过一些基本操作演示简单配置对话框。它显示文件的状态和 Project Explorer 图标。注意,它并不以任何实际的版本控制系统为基础,仅用作了解 Wwise 中版本控制插件工作原理的基础工程和创建您自己插件的参考。
位置:"samples\SourceControl\SourceControlSample"
实现导出函数的 DLL 接口的源代码和包含要导出的函数的定义文件可参见:
- SourceControlSample/DllInterface.cpp
- SourceControlSample/SourceControlSample.def
AK::Wwise::ISourceControl 实现可参见:
- SourceControlSample/SamplePlugin.cpp
- SourceControlSample/SamplePlugin.h
配置对话框的实现可参见:
- SourceControlSample/DlgConfiguration.cpp
- SourceControlSample/DlgConfiguration.h
Perforce 版本控制插件示例
这是 Wwise 中默认包含的 Perforce 插件。它可以让您在 Wwise 设计工具中执行 Perforce 操作。其中包含完整的源代码,为您提供版本控制插件的完整示例,如果您愿意,还可用来自定义和增强此插件。
位置:"SDK\samples\SourceControl\Perforce"
如何创建 Perforce 版本控制插件示例
在为 Wwise 构建 Perforce 插件之前,必须安装 Perforce C++ API 和 OpenSSL 文件,并将其放在正确的位置:
- 从 http://www.perforce.com 或 ftp://ftp.perforce.com/perforce 下载 Perforce/Helix Core C/C++ API Windows(x64) vs2017/static 库。当前版本为 Perforce 2018.1 C/C++ API。
![](/images/2021.1.14_8108/?source=SDK&id=images/Note.gif) |
备注: The vs2017 libraries are compatible with Visual Studio 2019 and are the correct libraries to download. |
- Extract the libraries to both of the following directories:
- "[Wwise Installation Root]\Authoring\source\3rdParty\Perforce\vs2019\Debug"
- "[Wwise Installation Root]\Authoring\source\3rdParty\Perforce\vs2019\Release" After the extraction, ensure that the Debug and Release directories both contain the "include", "lib", and "sample" directories.
- 从 https://indy.fulgan.com/SSL/ 和 https://indy.fulgan.com/SSL/LinkLibs/ 下载 OpenSSL 二进制文件和库文件。当前版本为 OpenSSL 1.0.2m。
- 将二进制文件(libeay32.dll、ssleay32.dll)解压到 "[Wwise Installation Root]\Authoring\source\3rdParty\OpenSSL\bin"
- 将库文件(libeay32.lib、ssleay32.lib)解压到 "[Wwise Installation Root]\Authoring\source\3rdParty\OpenSSL\lib"
You can now open the Perforce plug-in's project ("SDK\samples\SourceControl\Perforce\Perforce.vcxproj") and build the plug-in. 请参阅 版本控制插件 了解有关 Wwise 版本控制插件 API 和安装的信息。
![](/images/2021.1.14_8108/?source=SDK&id=images/Note.gif) |
备注: Some modifications to the code or project might be required in order to build with a different version of Perforce. |
Subversion 版本控制插件示例
这是 Wwise 中默认包含 的 Subversion 插件。它可以让您在 Wwise 设计工具中执行 Subversion 操作。其中包含完整的源代码,可以为您提供版本控制插件的完整示例。如果您愿意,可以通过包含此源代码来自定义和增强此插件。
位置:"SDK\samples\SourceControl\Subversion"
How to Build the Subversion Source Control Sample Plug-in
打开 Subversion 插件的工程 ("SDK\samples\SourceControl\Subversion\Subversion.vcxproj") 并构建插件。请参阅 版本控制插件 了解有关 Wwise 版本控制插件 API 和安装的信息。
![](/images/2021.1.14_8108/?source=SDK&id=images/Note.gif) |
备注:
- The Subversion plug-in that is included in the Wwise distribution was built using Subversion 1.8.5. Some modifications to the code or project might be required in order to build with a different version of Subversion.
- The Debug configuration of the Subversion plug-in uses the non-Debug Runtime Library to avoid memory allocation problems between the Subversion libraries and the plug-in.
|