// license:BSD-3-Clause // copyright-holders:Ryan Holtz //============================================================ // // suppressor.h - Conditionally suppress a bgfx chain entry // from being processed. // //============================================================ #ifndef MAME_RENDER_BGFX_SUPPRESSOR_H #define MAME_RENDER_BGFX_SUPPRESSOR_H #pragma once #include #include class bgfx_slider; class bgfx_suppressor { public: enum condition_type { CONDITION_EQUAL, CONDITION_NOTEQUAL, CONDITION_COUNT }; enum combine_mode { COMBINE_AND, COMBINE_OR }; bgfx_suppressor(std::vector &&sliders, uint32_t condition, combine_mode combine, void* value); ~bgfx_suppressor(); // Getters bool suppress(); combine_mode combine() const { return m_combine; } private: std::vector m_sliders; uint32_t m_condition; combine_mode m_combine; uint8_t* m_value; }; #endif // MAME_RENDER_BGFX_SUPPRESSOR_H