Unravel Engine C++ Reference
|
Struct representing a render window. More...
#include <render_window.h>
Public Types | |
using | graphics_surface_t = std::shared_ptr<gfx::frame_buffer> |
Public Member Functions | |
render_window (os::window &&win) | |
Constructs a render window with the specified OS window. | |
~render_window () | |
Destructor for the render window. | |
void | prepare_surface () |
Prepares the rendering surface. | |
void | destroy_surface () |
Destroys the rendering surface. | |
void | resize (uint32_t w, uint32_t h) |
Resizes the render window to the specified width and height. | |
auto | get_window () -> os::window & |
Gets the associated OS window. | |
auto | get_surface () -> graphics_surface_t & |
Gets the rendering surface. | |
auto | begin_present_pass () -> gfx::render_pass & |
Begins the present render pass. | |
auto | get_present_pass () -> gfx::render_pass & |
Gets the present render pass. | |
Struct representing a render window.
Definition at line 18 of file render_window.h.
using unravel::render_window::graphics_surface_t = std::shared_ptr<gfx::frame_buffer> |
Definition at line 21 of file render_window.h.
unravel::render_window::render_window | ( | os::window && | win | ) |
Constructs a render window with the specified OS window.
win | The OS window to associate with this render window. |
Definition at line 6 of file render_window.cpp.
unravel::render_window::~render_window | ( | ) |
Destructor for the render window.
Definition at line 11 of file render_window.cpp.
auto unravel::render_window::begin_present_pass | ( | ) | -> gfx::render_pass& |
Begins the present render pass.
Definition at line 61 of file render_window.cpp.
void unravel::render_window::destroy_surface | ( | ) |
Destroys the rendering surface.
Definition at line 16 of file render_window.cpp.
auto unravel::render_window::get_present_pass | ( | ) | -> gfx::render_pass& |
Gets the present render pass.
Definition at line 70 of file render_window.cpp.
auto unravel::render_window::get_surface | ( | ) | -> graphics_surface_t& |
Gets the rendering surface.
Definition at line 56 of file render_window.cpp.
auto unravel::render_window::get_window | ( | ) | -> os::window& |
Gets the associated OS window.
Definition at line 52 of file render_window.cpp.
void unravel::render_window::prepare_surface | ( | ) |
Prepares the rendering surface.
Definition at line 33 of file render_window.cpp.
void unravel::render_window::resize | ( | uint32_t | w, |
uint32_t | h ) |
Resizes the render window to the specified width and height.
w | The new width of the window. |
h | The new height of the window. |
Definition at line 27 of file render_window.cpp.