Home -> RenderPluginEnumerator -> AddPluginByPath

Description

The AddPluginByPath method loads a single plugin library, resolves its exported GetCobaltAPIVersion function, checks that the plugin was built against a compatible Cobalt Renderer API version, resolves its exported GetRendererPlugin function, and adds every renderer implementation exported by that library.

Usage

SuccessToken AddPluginByPath(const std::filesystem::path& pluginFilePath);

Argument list

pluginFilePath [const std::filesystem::path&]
The plugin library file to load.

Return value

[SuccessToken]
True if at least one renderer implementation was added from the library; otherwise false.

See also