|
Porytiles
|
Concept that requires a type to support transparency checks. More...
#include <supports_transparency.hpp>
Concept that requires a type to support transparency checks.
A type satisfies this concept if it has an is_transparent() method that returns a bool value. This method can either:
Tile and container types use requires clauses to provide only the appropriate overload(s) based on the pixel type.
Design Invariant: Types implementing this concept should default-construct to their transparent representation. That is, T{} should produce a transparent pixel value. This enables generic code to create transparent pixels without knowing the specific pixel type (e.g., Rgba32{0,0,0,0} and IndexPixel{0} both default-construct to transparent values).
Definition at line 25 of file supports_transparency.hpp.