Home -> IRendererPlugin -> GetRendererPluginFunctionType

Declaration

using GetRendererPluginFunctionType = bool(unsigned int indexNo, IRendererPlugin& rendererPlugin);

Description

The GetRendererPluginFunctionType typedef describes the exported function signature used by renderer plugin libraries.

Applications or helper classes should first resolve and call GetCobaltAPIVersion to check Cobalt Renderer API compatibility. After compatibility is confirmed, they resolve the exported symbol named GetRendererPlugin, cast it to this function type, and call it with increasing index values to retrieve every renderer implementation exported by the plugin.

See also