32#ifndef DVD_GENERIC_DRAW_COMMAND_INL_
33#define DVD_GENERIC_DRAW_COMMAND_INL_
38 return cmd._renderOptions &
to_base(option);
42 cmd._renderOptions |=
to_base(option);
46 cmd._renderOptions &= ~to_base(option);
62 cmd._renderOptions |=
to_base(optionsMask);
66 cmd._renderOptions &= ~to_base(optionsMask);
Handle console commands that start with a forward slash.
bool isEnabledOption(const GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void disableOptions(GenericDrawCommand &cmd, BaseType< CmdRenderOptions > optionsMask) noexcept
void disableOption(GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void toggleOption(GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void enableOption(GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void setOptions(GenericDrawCommand &cmd, BaseType< CmdRenderOptions > optionsMask, bool state) noexcept
void resetOptions(GenericDrawCommand &cmd) noexcept
std::underlying_type_t< Type > BaseType
void enableOptions(GenericDrawCommand &cmd, BaseType< CmdRenderOptions > optionsMask) noexcept
void setOption(GenericDrawCommand &cmd, CmdRenderOptions option, bool state) noexcept
constexpr auto to_base(const Type value) -> Type