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¶
| Name | Description |
|---|---|
~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¶
| Name | Description |
|---|---|
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¶
| Name | Description |
|---|---|
LiteFX::App | The base class for an application. |
Derived Classes¶
| Name | Description |
|---|---|
IRenderBackend | The interface to access a render backend. |
See Also¶
App