TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::application Class Referenceexport

represents a single application that gets created by the engine internally More...

Public Member Functions

 application (ref< graphics_context > p_context, const application_settings &p_params)
 constructs a new application
 
void execute ()
 Explicitly is used to execute the application's mainloop.
 
void post_destroy ()
 Performs any post cleanup when user requests the application to close.
 
VkSwapchainKHR get_current_swapchain ()
 gives you the current swapchain handle
 

Static Public Member Functions

static float delta_time ()
 
static graphics_api current_api ()
 we only ever have one window
 

Protected Member Functions

ref< renderer_systemrenderer_instance () const
 

Detailed Description

represents a single application that gets created by the engine internally

There is only ever going to be one application tied to the engine's runtime. As the application is given responsibilities of preloading, pre-initialization any sort of utilities required by the engine, and any form of post-cleanup when the user requests the application to close.

Constructor & Destructor Documentation

◆ application()

atlas::application::application ( ref< graphics_context p_context,
const application_settings p_params 
)
inlineexport

constructs a new application

Parameters
p_settingsis the specific application settings to configure how the application may be setup

Member Function Documentation

◆ current_api()

static graphics_api atlas::application::current_api ( )
inlinestaticexport

we only ever have one window

This static function was a means to getting access to the window to perform any operations or request any data the window may have to provide

Returns
the currently specified API.

◆ delta_time()

static float atlas::application::delta_time ( )
inlinestaticexport
Returns
the delta time as a float for giving you the timestep every frame

◆ get_current_swapchain()

VkSwapchainKHR atlas::application::get_current_swapchain ( )
inlineexport

gives you the current swapchain handle

TODO: This is not actually needed, and should be removed


The documentation for this class was generated from the following file: