LiteFX 0.3.1.2022
Computer Graphics Engine
|
#include <sample.h>
Inherits LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, and LiteFX::App.
Public Member Functions | |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawObject (const IRenderPass *renderPass, int i, int backBuffer, float time) |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
String | name () const noexcept override |
Returns the name of the app. More... | |
AppVersion | version () const noexcept override |
Returns the version of the app. More... | |
SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
virtual void | run () override |
Starts the application. More... | |
virtual void | initialize () override |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) override |
Called, if the application window resizes. More... | |
void | keyDown (int key, int scancode, int action, int mods) |
void | handleEvents () |
void | drawFrame () |
void | updateWindowTitle () |
Public Member Functions inherited from LiteFX::App | |
App () | |
Initializes a new app instance. More... | |
App (const App &)=delete | |
App (App &&)=delete | |
virtual | ~App () noexcept |
virtual String | name () const noexcept=0 |
Returns the name of the app. More... | |
virtual AppVersion | version () const noexcept=0 |
Returns the version of the app. More... | |
Platform | platform () const noexcept |
Returns the platform, the app is running on. More... | |
virtual const IBackend * | operator[] (std::type_index type) const |
Returns the registered backend instance for a type index. More... | |
virtual const IBackend * | getBackend (std::type_index type) const |
Returns the registered backend instance for a type index. More... | |
virtual Array< const IBackend * > | getBackends (const BackendType type) const noexcept |
Returns all registered backend instances of a backend type. More... | |
template<typename TBackend > requires rtti::implements<TBackend, IBackend> | |
void | onBackendStart (const std::function< bool(TBackend *)> &callback) |
Sets a callback that is called, if a backend is started. More... | |
template<typename TBackend > requires rtti::implements<TBackend, IBackend> | |
void | onBackendStop (const std::function< void(TBackend *)> &callback) |
Sets a callback that is called, if a backend is stopped. More... | |
template<typename TBackend > requires rtti::implements<TBackend, IBackend> | |
const TBackend * | findBackend () const |
Returns the registered backend instance for a type index. More... | |
template<typename TBackend > requires rtti::implements<TBackend, IBackend> | |
void | startBackend () |
Attempts to start a backend of type TBackend and stops the active backend of the same BackendType, if any. More... | |
template<typename TBackend > requires rtti::implements<TBackend, IBackend> | |
void | stopBackend () |
Stops a backend, if it is currently running. More... | |
virtual void | use (UniquePtr< IBackend > &&backend) |
Adds a backend to the app. More... | |
virtual void | run ()=0 |
Starts the application. More... | |
virtual void | initialize ()=0 |
Called to initialize the application state. More... | |
virtual void | resize (int &width, int &height) |
Called, if the application window resizes. More... | |
Static Public Member Functions | |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
static String | Name () noexcept |
static AppVersion | Version () noexcept |
Static Public Member Functions inherited from LiteFX::App | |
template<typename TApp , typename ... TArgs> | |
static AppBuilder | build (TArgs &&... _args) |
Creates a new application builder. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from LiteFX::App | |
virtual IBackend * | getBackend (std::type_index type) |
Returns the registered backend instance for a type index. More... | |
template<typename TBackend > requires rtti::implements<TBackend, IBackend> | |
TBackend * | findBackend () |
Returns the registered backend instance for a type index. More... | |
virtual void | startBackend (std::type_index type) const |
Starts a backend. More... | |
virtual void | stopBackend (std::type_index type) const |
Stops a backend. More... | |
virtual void | stopActiveBackends (const BackendType &type) const |
Stops the active backend of type . More... | |
virtual IBackend * | activeBackend (const BackendType &type) const |
Returns the active backend of the provided backend type . More... | |
virtual std::type_index | activeBackendType (const BackendType &type) const |
Returns the type index of the active backend of the provided backend type . More... | |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawFrame | ( | ) |
void SampleApp::drawObject | ( | const IRenderPass * | renderPass, |
int | i, | ||
int | backBuffer, | ||
float | time | ||
) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
void SampleApp::handleEvents | ( | ) |
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
|
overridevirtual |
Called to initialize the application state.
Implements LiteFX::App.
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
void SampleApp::keyDown | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Called, if the application window resizes.
Calling this method ensures, that the width and height parameters are valid.
width | The new width of the application window. |
height | The new height of the application window. |
Reimplemented from LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
|
overridevirtual |
Starts the application.
Implements LiteFX::App.
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
void SampleApp::updateWindowTitle | ( | ) |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |