Skip to content

LiteFX::IBackend

The base class for an app backend.

Synopsis

Declared in <litefx/app.hpp>

class [[dllexport, dllimport]] IBackend;

Description

An App can have one or more backends configured per BackendType. However, only one backend of a specific backend type can be active at a time. Backends can be configured with a startup and shutdown callback. Starting a backend will automatically shutdown the active backend of the same type, if any. If the app exits, all backends are shutdown accordingly, allowing to properly cleanup any resources.

Member Functions

NameDescription
~IBackend [destructor] [virtual]Destructor
name [virtual]Gets the name of the backend.
state Returns the state of the backend.
type [virtual]Gets the type of the backend.

Protected Member Functions

NameDescription
IBackend [constructor]Constructors
operator= Assignment operators
activate [virtual]Called by the parent App, if the backend is started.
deactivate [virtual]Called by the parent App, if the backend is stopped.
state Returns the state of the backend.

Friends

NameDescription
LiteFX::AppThe base class for an application.

Derived Classes

NameDescription
IRenderBackend The interface to access a render backend.

See Also

App