|
| class | BitmapFont |
| | Monospaced font whose glyphs are cells of a texture, drawn as sprites. More...
|
| |
| class | Camera |
| | The part of the world shown on screen: where it looks, how close, within which bounds. More...
|
| |
| struct | Color |
| | RGBA color with components in [0, 1]. More...
|
| |
| struct | ControlsTableStyle |
| | Styles and spacing of a controls table. More...
|
| |
| struct | EffectSettings |
| | The player's choice about screen flashes and shake. More...
|
| |
| struct | EmitterConfig |
| | How an emitter spawns its particles, and how they change over their life. More...
|
| |
| struct | FlowLayout |
| | Boxes placed by flow_layout(). More...
|
| |
| class | FrameMetrics |
| | Durations of the last frames, and the frame rate they make. More...
|
| |
| struct | FrameStats |
| | Counters of the last finished frame. More...
|
| |
| struct | GlyphGrid |
| | Layout of a font's atlas: a grid of cells holding consecutive characters. More...
|
| |
| class | HeadlessRenderer |
| | IRenderer without window nor graphics API, which keeps the sprites of each frame. More...
|
| |
| struct | Image |
| | RGBA image with 8 bits per channel, ready to become a texture. More...
|
| |
| class | ImageError |
| | Thrown when an image cannot be read, decoded or written. More...
|
| |
| class | IRenderer |
| | What the game draws with, whatever the graphics API behind it. More...
|
| |
| struct | Letterbox |
| | Where the logical screen goes in the window's framebuffer. More...
|
| |
| struct | LogicalScreen |
| | The game's screen at a fixed size, whatever the window's. More...
|
| |
| struct | MapLayer |
| | Layer of tiles or of objects. More...
|
| |
| class | MetricsOverlay |
| | Overlay of the frame metrics, for developers: frames per second, frame times, entities, sprites and draw calls of the frame before, the memory of the process, the game's own lines (its network numbers...), and a bar per frame kept. More...
|
| |
| struct | MetricsOverlayStyle |
| | Where and how the metrics overlay is drawn. More...
|
| |
| struct | Particle |
| | One particle of an emitter. More...
|
| |
| class | ParticleEmitter |
| | Spawns particles at a point, moves them and removes them at the end of their life. More...
|
| |
| struct | PixelRect |
| | Rectangle of a texture, in whole pixels from its top-left corner. More...
|
| |
| struct | PlayerStyle |
| | How one player is drawn: the tint of their sprites (their character and shots), and their marker. More...
|
| |
| struct | Range |
| | Values picked at random between two bounds, both included. More...
|
| |
| struct | Rect |
| | Axis-aligned rectangle. More...
|
| |
| class | ScreenEffects |
| | Full-screen flashes and camera shake triggered by gameplay (explosions, hits). More...
|
| |
| struct | ShownCue |
| | A cue on screen and the time it has left. More...
|
| |
| struct | SoundCue |
| | What an important sound tells the player, shown while it plays. More...
|
| |
| class | SoundCues |
| | Captions and direction arrows for the sounds a deaf or hard-of-hearing player, or anyone playing muted, would miss. More...
|
| |
| struct | Sprite |
| | One textured quad to draw. More...
|
| |
| struct | SpriteBatch |
| | Run of consecutive sprites drawn with one texture on one layer: one draw call. More...
|
| |
| class | SpriteSheet |
| | How a texture is cut into frames, numbered from 0. More...
|
| |
| class | Starfield |
| | Stars scrolling across the screen in layers, each at its own speed: a parallax background for a side-scrolling shooter. More...
|
| |
| struct | StarLayer |
| | One layer of a starfield: stars at one depth. More...
|
| |
| struct | TextSize |
| | Size of the HUD and menu text chosen by the player, from 100% to 200%. More...
|
| |
| struct | TextStyle |
| | How a text is drawn. More...
|
| |
| class | TextureManager |
| | The game's textures, each loaded once and found by a name such as "player". More...
|
| |
| struct | TextureSize |
| | Width and height of a texture, in pixels. More...
|
| |
| struct | TileMap |
| | Orthogonal, finite map made in Tiled, saved as JSON. More...
|
| |
| class | TileMapError |
| | Thrown when a map or one of its tilesets cannot be read or is broken. More...
|
| |
| class | TileMapView |
| | A TileMap ready to draw: the textures of its tilesets and where each tile is in them. More...
|
| |
| struct | TileObject |
| | Shape placed on the map: a spawn point, a trigger area, a tile placed freely. More...
|
| |
| struct | Tileset |
| | Image cut into tiles; its tiles are the global ids first_gid to first_gid + tile_count - 1. More...
|
| |
|
| using | Vec2 = aegis2d::Vec2 |
| | 2D vector of floats, in logical pixels: the engine-wide aegis2d::Vec2.
|
| |
| using | TextureId = std::uint32_t |
| | Identifier of a texture loaded by the resource manager.
|
| |
| using | TileProperty = std::variant< bool, std::int64_t, double, std::string > |
| | Value of a custom property: bool, int (and object, its id), float, or string (and color, file).
|
| |
| using | TileProperties = std::map< std::string, TileProperty, std::less<> > |
| | Custom properties of a map, layer, object or tileset, by name.
|
| |
|
| constexpr Color | rgb (std::uint32_t hex, float alpha=1.0F) noexcept |
| | Color from its hexadecimal sRGB code, as design tools and palettes give it.
|
| |
| Color | simulate (Color color, ColorVision vision) noexcept |
| | Color as seen with a color vision.
|
| |
| float | relative_luminance (Color color) noexcept |
| | Relative luminance of a color, as defined by WCAG 2.
|
| |
| float | contrast_ratio (Color first, Color second) noexcept |
| | WCAG 2 contrast ratio between two colors.
|
| |
| float | lightness (Color color) noexcept |
| | Perceived lightness of a color, CIE L*.
|
| |
| float | color_difference (Color first, Color second) noexcept |
| | Perceived difference between two colors, CIE76 ΔE*ab in CIELAB (D65).
|
| |
| Vec2 | measure_controls (const BitmapFont &font, std::span< const platform::ControlLine > lines, const ControlsTableStyle &style) noexcept |
| | Size a controls table takes.
|
| |
| Vec2 | 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.
|
| |
| Letterbox | letterbox (Vec2 logical, int width, int height, ScaleMode mode=ScaleMode::Fit) noexcept |
| | Fits a logical screen into a framebuffer, centered, keeping its aspect ratio.
|
| |
| Vec2 | to_logical (const Letterbox &box, Vec2 framebuffer) noexcept |
| | Logical pixel under a point of the framebuffer, such as the mouse.
|
| |
| std::string | metrics_text (const FrameMetrics &metrics, FrameStats stats, std::optional< std::size_t > entities, std::optional< std::size_t > memory=std::nullopt, std::span< const std::string > lines={}) |
| | Text of the metrics overlay.
|
| |
| std::string_view | name () noexcept |
| | Name of the module, used to check that it is linked.
|
| |
| PlayerStyle | player_style (std::size_t player) |
| | Style of one player.
|
| |
| std::vector< std::uint8_t > | marker_image (MarkerShape shape, int size) |
| | Image of a marker, to load as a texture and draw tinted with the player's color.
|
| |
| std::vector< SpriteBatch > | batch_sprites (std::vector< Sprite > &sprites) |
| | Orders sprites for drawing and groups those that share a layer and a texture.
|
| |
| bool | overlaps (const Rect &first, const Rect &second) noexcept |
| | Tells whether two rectangles overlap.
|
| |
| bool | contains (const Rect &outer, const Rect &inner) noexcept |
| | Tells whether a rectangle lies within another.
|
| |
| FlowLayout | 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.
|
| |
|
| constexpr std::array | color_visions |
| | Every ColorVision, to check a palette against each of them.
|
| |
| constexpr std::size_t | max_players = 4 |
| | Number of players a game can tell apart with player_styles.
|
| |
| constexpr std::array< PlayerStyle, max_players > | player_styles |
| | Style of each player, the first player first.
|
| |
| constexpr TextureId | no_texture = 0 |
| | Texture identifier meaning "no texture": the sprite is a plain tinted rectangle.
|
| |
| constexpr std::array< StarLayer, 3 > | default_star_layers |
| | Three layers, from the farthest: many small dim stars scrolling slowly, then fewer, larger, brighter and faster ones.
|
| |
| constexpr std::uint32_t | flip_horizontal = 0x8000'0000U |
| | Bit of a global tile id set when the tile is flipped left to right.
|
| |
| constexpr std::uint32_t | flip_vertical = 0x4000'0000U |
| | Bit of a global tile id set when the tile is flipped top to bottom.
|
| |
| constexpr std::uint32_t | flip_diagonal = 0x2000'0000U |
| | Bit of a global tile id set when the tile is flipped along its diagonal.
|
| |
| constexpr std::uint32_t | tile_id_mask = 0x0FFF'FFFFU |
| | Bits of a global tile id that are the id, without the flip bits.
|
| |
OpenGL renderer: sprites, text and camera (client only).
Initial value:{{
{.color =
rgb(0x0072B2), .marker = MarkerShape::Circle},
{.color =
rgb(0xEE6677), .marker = MarkerShape::Triangle},
{.color = rgb(0xF0E442), .marker = MarkerShape::Square},
{.color = rgb(0x66CCEE), .marker = MarkerShape::Diamond},
}}
Style of each player, the first player first.
Colors from the Okabe-Ito and Paul Tol colorblind-safe palettes: blue #0072B2, red #EE6677, yellow #F0E442, cyan #66CCEE. Any two stay apart (CIE76 ΔE above 30) for typical vision, protanopia, deuteranopia and tritanopia; their lightness steps (L* 46, 61, 89, 77) keep them apart in grayscale; each has a 3:1 contrast or more on a dark background. The marker shapes tell them apart even without any color.