Porytiles
Loading...
Searching...
No Matches
supports_transparency.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <concepts>
4
5
namespace
porytiles
{
6
24
template
<
typename
T>
25
concept
SupportsTransparency
=
requires
(
const
T &t) {
26
{ t.is_transparent() } -> std::convertible_to<bool>;
27
} ||
requires
(
const
T &t) {
28
{ t.is_transparent(t) } -> std::convertible_to<bool>;
29
};
30
}
// namespace porytiles
porytiles::SupportsTransparency
Concept that requires a type to support transparency checks.
Definition
supports_transparency.hpp:25
porytiles
Definition
app_config.hpp:12
porytiles
include
porytiles
domain
models
supports_transparency.hpp
Generated by
1.9.8