|
Aegis2D
Modular C++26 2D game engine for networked games
|
Where the logical screen goes in the window's framebuffer. More...
#include <aegis2d/render/letterbox.hpp>
Public Member Functions | |
| constexpr bool | empty () const noexcept |
| Tells whether the logical screen covers no pixel (a minimized window). | |
Public Attributes | |
| int | x = 0 |
| Left edge, in framebuffer pixels from the left. | |
| int | y = 0 |
| Top edge, in framebuffer pixels from the top. | |
| int | width = 0 |
| Width in framebuffer pixels. | |
| int | height = 0 |
| Height in framebuffer pixels. | |
| float | scale = 0.0F |
| Framebuffer pixels per logical pixel; 0 when nothing is shown. | |
Friends | |
| constexpr bool | operator== (const Letterbox &, const Letterbox &) noexcept=default |
| Compares the areas. | |
Where the logical screen goes in the window's framebuffer.
|
inlineconstexprnoexcept |
Tells whether the logical screen covers no pixel (a minimized window).
true when the width or the height is 0. | int aegis2d::render::Letterbox::height = 0 |
Height in framebuffer pixels.
| float aegis2d::render::Letterbox::scale = 0.0F |
Framebuffer pixels per logical pixel; 0 when nothing is shown.
| int aegis2d::render::Letterbox::width = 0 |
Width in framebuffer pixels.
| int aegis2d::render::Letterbox::x = 0 |
Left edge, in framebuffer pixels from the left.
| int aegis2d::render::Letterbox::y = 0 |
Top edge, in framebuffer pixels from the top.