Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
color.hpp File Reference

RGBA color used by the renderer. More...

#include <cstdint>

Go to the source code of this file.

Classes

struct  aegis2d::render::Color
 RGBA color with components in [0, 1]. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::render
 OpenGL renderer: sprites, text and camera (client only).
 

Functions

constexpr Color aegis2d::render::rgb (std::uint32_t hex, float alpha=1.0F) noexcept
 Color from its hexadecimal sRGB code, as design tools and palettes give it.
 

Detailed Description

RGBA color used by the renderer.