|
Aegis2D
Modular C++26 2D game engine for networked games
|
The player's text size, and laying text out so that larger text never overlaps. More...
#include <aegis2d/core/config.hpp>#include <aegis2d/core/math.hpp>#include <aegis2d/render/bitmap_font.hpp>#include <aegis2d/render/export.hpp>#include <aegis2d/render/renderer.hpp>#include <span>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | aegis2d::render::TextSize |
| Size of the HUD and menu text chosen by the player, from 100% to 200%. More... | |
| struct | aegis2d::render::FlowLayout |
| Boxes placed by flow_layout(). More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::render |
| OpenGL renderer: sprites, text and camera (client only). | |
Functions | |
| bool | aegis2d::render::overlaps (const Rect &first, const Rect &second) noexcept |
| Tells whether two rectangles overlap. | |
| bool | aegis2d::render::contains (const Rect &outer, const Rect &inner) noexcept |
| Tells whether a rectangle lies within another. | |
| FlowLayout | aegis2d::render::flow_layout (std::span< const Vec2 > sizes, const Rect &area, Vec2 gap) |
| Places boxes left to right in an area, starting a new row when one does not fit. | |
The player's text size, and laying text out so that larger text never overlaps.