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
porytiles2
{
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 porytiles2
porytiles2::SupportsTransparency
Concept that requires a type to support transparency checks.
Definition
supports_transparency.hpp:25
porytiles2
Definition
app_config.hpp:10
Porytiles2
include
porytiles2
domain
models
supports_transparency.hpp
Generated by
1.9.8