|
Aegis2D
Modular C++26 2D game engine for networked games
|
Drawing the game's controls as a two-column table, for a reminder screen. More...
#include <aegis2d/core/math.hpp>#include <aegis2d/platform/controls.hpp>#include <aegis2d/render/bitmap_font.hpp>#include <aegis2d/render/export.hpp>#include <aegis2d/render/renderer.hpp>#include <span>Go to the source code of this file.
Classes | |
| struct | aegis2d::render::ControlsTableStyle |
| Styles and spacing of a controls table. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::render |
| OpenGL renderer: sprites, text and camera (client only). | |
Functions | |
| Vec2 | aegis2d::render::measure_controls (const BitmapFont &font, std::span< const platform::ControlLine > lines, const ControlsTableStyle &style) noexcept |
| Size a controls table takes. | |
| Vec2 | aegis2d::render::draw_controls (IRenderer &renderer, const BitmapFont &font, std::span< const platform::ControlLine > lines, Vec2 position, const ControlsTableStyle &style) |
| Draws a controls table: actions in a column, their keys aligned in a second one. | |
Drawing the game's controls as a two-column table, for a reminder screen.