Skip to content

LiteFX::App::startBackend

Attempts to start a backend of type TBackend and stops the active backend of the same BackendType, if any.

Synopsis

Declared in <litefx/app.hpp>

template<typename TBackend>
requires meta::implements<TBackend, IBackend>
void startBackend();

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if no backend of type TBackend is registered.

Template Parameters

NameDescription
TBackendThe type of the backend to start.