This commit is contained in:
Jorijn van der Graaf 2025-12-28 00:47:27 +01:00
commit 8489c57d40
8 changed files with 135 additions and 14 deletions

View file

@ -107,6 +107,11 @@ namespace Crafter {
std::chrono::duration<double> delta;
};
export enum class OpaqueType {
FullyOpaque, // All pixels have A of 255
SemiOpaque, // All pixels have A of 0 or 255 (no blending needed)
Transparent // Color blending is used
};
export constexpr std::int_fast32_t BOUND = 9;
export constexpr std::int_fast32_t SCALE = std::numeric_limits<std::int_fast32_t>::max() / BOUND;