GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::DecalID Struct Reference

Opaque handle to a specific decal in a Decals3D set. More...

#include <GREM/graphics_3d/Decals3D.hpp>

Public Member Functions

constexpr DecalID () noexcept=default
 Construct an invalid decal handle.
constexpr operator bool () const noexcept
 Check if this handle is potentially valid.
constexpr bool operator== (const DecalID &other) const noexcept=default
 Compare this handle to another for equality.
constexpr std::strong_ordering operator<=> (const DecalID &other) const noexcept=default
 Compare this handle to another.

Detailed Description

Opaque handle to a specific decal in a Decals3D set.

Constructor & Destructor Documentation

◆ DecalID()

grem::graphics::DecalID::DecalID ( )
constexprdefaultnoexcept

Construct an invalid decal handle.

Member Function Documentation

◆ operator bool()

grem::graphics::DecalID::operator bool ( ) const
inlineexplicitconstexprnoexcept

Check if this handle is potentially valid.

Returns
true if this handle is potentially valid, false if it is equal to a default-constructed invalid handle.

◆ operator==()

bool grem::graphics::DecalID::operator== ( const DecalID & other) const
nodiscardconstexprdefaultnoexcept

Compare this handle to another for equality.

Parameters
otherthe handle to compare this one to.
Returns
true if the handles are equal, false otherwise.

◆ operator<=>()

std::strong_ordering grem::graphics::DecalID::operator<=> ( const DecalID & other) const
nodiscardconstexprdefaultnoexcept

Compare this handle to another.

Parameters
otherthe handle to compare this one to.
Returns
a strong ordering between the two handles.

The documentation for this struct was generated from the following file: