Home -> PlatformBindings -> IRendererPlugin

Declaration

class IRendererPlugin;

Description

The IRendererPlugin interface is filled by renderer plugins when their exported GetRendererPlugin function is called. It records the renderer API family, target API version, names shown to applications, and the allocator used to create a graphics device enumerator.

Direct plugin loaders should call GetCobaltAPIVersion and verify API compatibility before passing an IRendererPlugin object to GetRendererPlugin.

Applications normally work with the concrete RendererPlugin object. Renderer plugin implementations write to the object through the IRendererPlugin interface.

ImportantImportant

A renderer plugin can expose more than one renderer implementation. Call GetRendererPlugin with increasing index values until it returns false.

Enumerations

Name Description
Public Enum ApiFamily
Identifies the graphics API family implemented by a renderer plugin.

Structures

Name Description
Public Struct ApiVersion
Reports the target graphics API version implemented by a renderer plugin.

Typedefs

Name Description
Public Delegate AllocatorPointer
Function pointer type used by a renderer plugin to allocate a graphics device enumerator.
Public Delegate GetRendererPluginFunctionType
Function type of the exported renderer plugin information function.

Members

Data access methods

Name Description
Public member SetApiFamily
Sets the renderer API family.
Public member SetTargetApiVersion
Sets the target graphics API version.
Public member SetName
Sets the stable renderer name.
Public member SetDisplayName
Sets the human-readable renderer display name.

Allocation methods

Name Description
Public member SetAllocationFunction
Sets the allocator used to create a graphics device enumerator.

See also