LiteFX 0.5.1.2025
Computer Graphics Engine
Loading...
Searching...
No Matches
LiteFX::AppBuilder Class Reference

Creates a new builder for an App. More...

#include <app.hpp>

Inherits LiteFX::Builder< App >.

Public Member Functions

void use (UniquePtr< IBackend > &&backend)
template<typename TSink, typename ... TArgs>
AppBuilderlogTo (TArgs &&... args)
 Registers a sink for logging.
template<typename TBackend, typename ... TArgs>
AppBuilderuseBackend (TArgs &&... args)
 Registers a new backend.
Public Member Functions inherited from LiteFX::Builder< App >
constexpr const Appinstance () const noexcept
 Returns a pointer to the current instance of the object that is built by the builder.
constexpr const TParent & parent () const noexcept
 Returns a reference of the parent builder.
constexpr Builder (TParent &parent, TPointer &&instance) noexcept
 Initializes the builder instance.
auto operator= (const Builder &)=delete
virtual constexpr ~Builder () noexcept=default
void use (pointer_type &&) noexcept=delete
 Called by child builders to pass a constructed object back to the parent builder.
constexpr TParent & add ()
 First, calls build, then use on the parent builder using the current object instance and finally returns the parent builder.

Additional Inherited Members

Public Types inherited from LiteFX::Builder< App >
using instance_type
using parent_type
using pointer_type
Protected Member Functions inherited from LiteFX::Builder< App >
virtual constexpr void build ()
 Can be overwritten to perform any pre-construction work before the builder returns the final object instance.

Detailed Description

Creates a new builder for an App.

Member Function Documentation

◆ logTo()

template<typename TSink, typename ... TArgs>
AppBuilder & LiteFX::AppBuilder::logTo ( TArgs &&... args)
inline

Registers a sink for logging.

◆ use()

void AppBuilder::use ( UniquePtr< IBackend > && backend)

◆ useBackend()

template<typename TBackend, typename ... TArgs>
AppBuilder & LiteFX::AppBuilder::useBackend ( TArgs &&... args)
inline

Registers a new backend.