6#include <aegis2d/render/export.hpp>
RGBA color used by the renderer.
OpenGL renderer: sprites, text and camera (client only).
Definition bitmap_font.hpp:16
constexpr std::array< PlayerStyle, max_players > player_styles
Style of each player, the first player first.
Definition player_style.hpp:46
PlayerStyle player_style(std::size_t player)
Style of one player.
constexpr std::size_t max_players
Number of players a game can tell apart with player_styles.
Definition player_style.hpp:16
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.
Definition color.hpp:25
MarkerShape
Shape drawn next to a player, so players are told apart without color.
Definition player_style.hpp:19
@ Triangle
Triangle pointing up.
@ Diamond
Square standing on a corner.
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.
RGBA color with components in [0, 1].
Definition color.hpp:10
How one player is drawn: the tint of their sprites (their character and shots), and their marker.
Definition player_style.hpp:32
Color color
Tint of the player's sprites.
Definition player_style.hpp:34
MarkerShape marker
Shape drawn next to the player.
Definition player_style.hpp:36