Identifier for a collision layer that a collider may belong to.
More...
#include <GREM/physics/Shape.hpp>
|
| constexpr | CollisionLayer (size_t index) noexcept |
| | Construct a layer identifier with a specific index.
|
| constexpr | operator size_t () const noexcept |
| | Convert this layer identifier to its underlying index.
|
| constexpr bool | operator== (const CollisionLayer &other) const noexcept=default |
| | Compare this layer identifier to another for equality.
|
Identifier for a collision layer that a collider may belong to.
◆ CollisionLayer()
| grem::physics::CollisionLayer::CollisionLayer |
( |
size_t | index | ) |
|
|
inlineexplicitconstexprnoexcept |
Construct a layer identifier with a specific index.
- Parameters
-
◆ operator size_t()
| grem::physics::CollisionLayer::operator size_t |
( |
| ) |
const |
|
inlineexplicitconstexprnoexcept |
Convert this layer identifier to its underlying index.
- Returns
- the index of the layer.
◆ operator==()
| bool grem::physics::CollisionLayer::operator== |
( |
const CollisionLayer & | other | ) |
const |
|
nodiscardconstexprdefaultnoexcept |
Compare this layer identifier to another for equality.
- Parameters
-
| other | the layer identifier to compare this one to. |
- Returns
- true if the layer identifiers are equal, false otherwise.
◆ MAX
Maximum collision layer value.
The documentation for this class was generated from the following file: