|
LiteFX 0.4.1.2025
Computer Graphics Engine
|
#include <sample.h>
Inherits LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, LiteFX::App, and LiteFX::App.
Public Member Functions | |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| 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 () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| void | updateCamera (const ICommandBuffer &commandBuffer, IBuffer &buffer) const |
| Updates the camera buffer. This needs to be done whenever the frame buffer changes, since we need to pass changes in the aspect ratio to the view/projection matrix. | |
| void | keyDown (int key, int scancode, int action, int mods) |
| void | handleEvents () |
| void | drawFrame () |
| void | updateWindowTitle () |
| StringView | name () const noexcept override |
| Returns the name of the app. | |
| AppVersion | version () const noexcept override |
| Returns the version of the app. | |
| SampleApp (GlfwWindowPtr &&window, Optional< UInt32 > adapterId) | |
| 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. | |
| App (const App &)=delete | |
| App (App &&) noexcept=delete | |
| auto | operator= (const App &)=delete |
| auto | operator= (App &&) noexcept=delete |
| virtual | ~App () noexcept |
| Platform | platform () const noexcept |
| Returns the platform, the app is running on. | |
| const IBackend * | operator[] (std::type_index type) const |
| Returns the registered backend instance for a type index. | |
| const IBackend * | getBackend (std::type_index type) const |
| Returns the registered backend instance for a type index. | |
| Enumerable< const IBackend & > | getBackends (const BackendType type) const |
| Returns all registered backend instances of a backend type. | |
| template<typename TBackend > requires meta::implements<TBackend, IBackend> | |
| void | onBackendStart (const std::function< bool(TBackend *)> &callback) |
| Sets a callback that is called, if a backend is started. | |
| template<typename TBackend > requires meta::implements<TBackend, IBackend> | |
| void | onBackendStop (const std::function< void(TBackend *)> &callback) |
| Sets a callback that is called, if a backend is stopped. | |
| template<typename TBackend > requires meta::implements<TBackend, IBackend> | |
| const TBackend * | findBackend () const |
| Returns the registered backend instance for a type index. | |
| template<typename TBackend > requires meta::implements<TBackend, IBackend> | |
| void | startBackend () |
| Attempts to start a backend of type TBackend and stops the active backend of the same BackendType, if any. | |
| template<typename TBackend > requires meta::implements<TBackend, IBackend> | |
| void | stopBackend () |
| Stops a backend, if it is currently running. | |
| virtual void | use (UniquePtr< IBackend > &&backend) |
| Adds a backend to the app. | |
| void | run () |
| Starts the application. | |
| void | resize (int width, int height) |
| Called, if the application window resizes. | |
Static Public Member Functions | |
| static StringView | Name () noexcept |
| static AppVersion | Version () |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | Name () noexcept |
| static AppVersion | Version () noexcept |
| static StringView | 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. | |
Additional Inherited Members | |
Public Attributes inherited from LiteFX::App | |
| Event< const IBackend * > | backendStarted |
| Invoked, if a backend has been started. | |
| Event< const IBackend * > | backendStopped |
| Invoked, if a backend has been stopped. | |
| Event< EventArgs > | startup |
| Invoked, if the application has been started. | |
| Event< EventArgs > | initializing |
| Invoked during initialization. | |
| Event< EventArgs > | shutdown |
| Invoked, if the application has is shutting down. | |
| Event< ResizeEventArgs > | resized |
| Invoked, if the app window or context gets resized. | |
Protected Member Functions inherited from LiteFX::App | |
| IBackend * | getBackend (std::type_index type) |
| Returns the registered backend instance for a type index. | |
| template<typename TBackend > requires meta::implements<TBackend, IBackend> | |
| TBackend * | findBackend () |
| Returns the registered backend instance for a type index. | |
| void | startBackend (std::type_index type) const |
| Starts a backend. | |
| void | stopBackend (std::type_index type) const |
| Stops a backend. | |
| void | stopActiveBackends (BackendType type) const |
| Stops the active backend of type . | |
| IBackend * | activeBackend (BackendType type) const |
| Returns the active backend of the provided backend type . | |
| std::type_index | activeBackendType (BackendType type) const |
| Returns the type index of the active backend of the provided backend type . | |
| 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::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 | ( | ) |
| void SampleApp::handleEvents | ( | ) |
| void SampleApp::handleEvents | ( | ) |
| void SampleApp::handleEvents | ( | ) |
| void SampleApp::handleEvents | ( | ) |
| void SampleApp::handleEvents | ( | ) |
| 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 ) |
| 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 ) |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
| void SampleApp::updateCamera | ( | const ICommandBuffer & | commandBuffer, |
| IBuffer & | buffer ) const |
Updates the camera buffer. This needs to be done whenever the frame buffer changes, since we need to pass changes in the aspect ratio to the view/projection matrix.
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
| void SampleApp::updateWindowTitle | ( | ) |
|
inlinestatic |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |