Skip to main content

Class RendererFactory

Simple factory to create a renderer for a given backend API/version/etc.

Assembly: ImGuiScene.dll
View Source
Declaration
public class RendererFactory

Methods

CreateRenderer(RendererBackend, bool)

Creates a renderer of the specified backend type.

View Source
Declaration
public static IRenderer CreateRenderer(RendererFactory.RendererBackend backend, bool enableDebugging)
Returns

ImGuiScene.IRenderer

Parameters
TypeNameDescription
ImGuiScene.RendererFactory.RendererBackendbackendWhich renderer type to create
System.BooleanenableDebuggingWhether to enable debugging in the internal render state. This is likely to greatly affect performance and should generally be avoided.