Application base providing bare minimum of functionality (app lifetime, event handling, vulkan instance management)
More...
#include <foray_minimalappbase.hpp>
|
virtual void | Init () |
| Inits the applications basic vulkan objects.
|
|
virtual void | PollEvents () |
| Polls and distributes events from the SDL subsystem.
|
|
virtual void | Destroy () |
| Destroys the vulkan instance.
|
|
virtual void | ApiBeforeInstanceCreate (vkb::InstanceBuilder &instanceBuilder) |
| Override this method to alter vulkan instance creation parameters via the instance builder.
|
|
virtual bool | ApiCanRenderNextFrame () |
| Override this method to init your application.
|
|
virtual void | ApiRender (RenderLoop::RenderInfo &renderInfo) |
| Override this method to render your application.
|
|
virtual void | ApiOnEvent (const osi::Event *event) |
| Override this method to react to events.
|
|
virtual void | ApiDestroy () |
| Override this method to cleanup your application.
|
|
Application base providing bare minimum of functionality (app lifetime, event handling, vulkan instance management)
◆ MinimalAppBase()
foray::base::MinimalAppBase::MinimalAppBase |
( |
bool |
printStateChanges = true | ) |
|
◆ ~MinimalAppBase()
virtual foray::base::MinimalAppBase::~MinimalAppBase |
( |
| ) |
|
|
virtualdefault |
◆ ApiBeforeInstanceCreate()
virtual void foray::base::MinimalAppBase::ApiBeforeInstanceCreate |
( |
vkb::InstanceBuilder & |
instanceBuilder | ) |
|
|
inlineprotectedvirtual |
Override this method to alter vulkan instance creation parameters via the instance builder.
◆ ApiCanRenderNextFrame()
virtual bool foray::base::MinimalAppBase::ApiCanRenderNextFrame |
( |
| ) |
|
|
inlineprotectedvirtual |
Override this method to init your application.
◆ ApiDestroy()
virtual void foray::base::MinimalAppBase::ApiDestroy |
( |
| ) |
|
|
inlineprotectedvirtual |
Override this method to cleanup your application.
◆ ApiOnEvent()
virtual void foray::base::MinimalAppBase::ApiOnEvent |
( |
const osi::Event * |
event | ) |
|
|
inlineprotectedvirtual |
Override this method to react to events.
◆ ApiRender()
Override this method to render your application.
◆ Destroy()
virtual void foray::base::MinimalAppBase::Destroy |
( |
| ) |
|
|
protectedvirtual |
Destroys the vulkan instance.
◆ Init()
virtual void foray::base::MinimalAppBase::Init |
( |
| ) |
|
|
protectedvirtual |
Inits the applications basic vulkan objects.
◆ PollEvents()
virtual void foray::base::MinimalAppBase::PollEvents |
( |
| ) |
|
|
protectedvirtual |
Polls and distributes events from the SDL subsystem.
◆ Run()
int32_t foray::base::MinimalAppBase::Run |
( |
| ) |
|
Runs through the entire lifetime of the app.
◆ mContext
◆ mInstance
◆ mOsManager
◆ mRenderLoop
RenderLoop foray::base::MinimalAppBase::mRenderLoop |
|
protected |
The documentation for this class was generated from the following file: