TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::vulkan::window_context Class Referenceexport

vulkan-backend implementation of the application-window More...

Inheritance diagram for atlas::vulkan::window_context:
atlas::window

Public Member Functions

 window_context (ref< graphics_context > p_context, const window_params &p_params)
 
- Public Member Functions inherited from atlas::window
window_params data () const
 
bool available () const
 Checks if window is available to close.
 
float aspect_ratio () const
 Returns the aspect ratio of the current window.
 
uint32_t acquired_next_frame ()
 gives you the next presentable image to use and the index to retrieving that image
 
vulkan::swapchain current_swapchain () const
 Returns the window's currently selected swapchain.
 
vk::command_buffer active_command (uint32_t p_frame_index)
 retrieves the current command buffer using the current frame index to ensure we are processing commands to the right command buffer in our current frame
 
 operator GLFWwindow * () const
 operator overload for treating atlas::window as a GLFWwindow handle
 
 operator GLFWwindow * ()
 operator overload for treating atlas::window as a GLFWwindow handle
 
void close ()
 Closing the window operation.
 
void present (const uint32_t &p_current_frame_idx)
 does the presentation operation that is operated internally with the vulkan swapchain
 

Protected Member Functions

window_params get_params () const override
 
GLFWwindownative_window () const override
 
uint32_t read_acquired_next_frame () override
 
vulkan::swapchain window_swapchain () const override
 
vk::command_buffer current_active_command (uint32_t p_frame_idx) override
 
void present_frame (const uint32_t &p_current_frame) override
 

Detailed Description

vulkan-backend implementation of the application-window

Member Function Documentation

◆ current_active_command()

vk::command_buffer atlas::vulkan::window_context::current_active_command ( uint32_t  p_frame_idx)
inlineoverrideexportprotectedvirtual

Implements atlas::window.

◆ get_params()

window_params atlas::vulkan::window_context::get_params ( ) const
inlineoverrideexportprotectedvirtual

Implements atlas::window.

◆ native_window()

GLFWwindow * atlas::vulkan::window_context::native_window ( ) const
inlineoverrideexportprotectedvirtual

Implements atlas::window.

◆ present_frame()

void atlas::vulkan::window_context::present_frame ( const uint32_t p_current_frame)
inlineoverrideexportprotectedvirtual

Implements atlas::window.

◆ read_acquired_next_frame()

uint32_t atlas::vulkan::window_context::read_acquired_next_frame ( )
inlineoverrideexportprotectedvirtual

Implements atlas::window.

◆ window_swapchain()

vulkan::swapchain atlas::vulkan::window_context::window_swapchain ( ) const
inlineoverrideexportprotectedvirtual

Implements atlas::window.


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