Identifier for a specific image in a SpriteAtlas.
More...
#include <GREM/graphics/SpriteAtlas.hpp>
|
| constexpr | SpriteID () noexcept=default |
| | Construct an invalid sprite identifier.
|
| constexpr | operator bool () const noexcept |
| | Check if this identifier is potentially valid.
|
| constexpr bool | operator== (const SpriteID &other) const noexcept=default |
| | Compare this identifier to another for equality.
|
| constexpr std::strong_ordering | operator<=> (const SpriteID &other) const noexcept=default |
| | Compare this identifier to another.
|
Identifier for a specific image in a SpriteAtlas.
◆ SpriteID()
| grem::graphics::SpriteID::SpriteID |
( |
| ) |
|
|
constexprdefaultnoexcept |
Construct an invalid sprite identifier.
◆ operator bool()
| grem::graphics::SpriteID::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexprnoexcept |
Check if this identifier is potentially valid.
- Returns
- true if this identifier is potentially valid, false if it is equal to a default-constructed invalid identifier.
◆ operator==()
| bool grem::graphics::SpriteID::operator== |
( |
const SpriteID & | other | ) |
const |
|
nodiscardconstexprdefaultnoexcept |
Compare this identifier to another for equality.
- Parameters
-
| other | the identifier to compare this one to. |
- Returns
- true if the identifiers are equal, false otherwise.
◆ operator<=>()
| std::strong_ordering grem::graphics::SpriteID::operator<=> |
( |
const SpriteID & | other | ) |
const |
|
nodiscardconstexprdefaultnoexcept |
Compare this identifier to another.
- Parameters
-
| other | the identifier to compare this one to. |
- Returns
- a strong ordering between the two identifiers.
The documentation for this struct was generated from the following file: