Add SNESColorButton and ConvertSNESColorToImVec4
This commit is contained in:
@@ -11,9 +11,19 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
|
||||
namespace gui {
|
||||
|
||||
using gfx::SNESColor;
|
||||
|
||||
// A utility function to convert an SNESColor object to an ImVec4 with
|
||||
// normalized color values
|
||||
ImVec4 ConvertSNESColorToImVec4(const SNESColor& color);
|
||||
|
||||
// The wrapper function for ImGui::ColorButton that takes a SNESColor reference
|
||||
IMGUI_API bool SNESColorButton(absl::string_view id, SNESColor& color,
|
||||
ImGuiColorEditFlags flags = 0,
|
||||
const ImVec2& size_arg = ImVec2(0, 0));
|
||||
|
||||
void DisplayPalette(app::gfx::SNESPalette& palette, bool loaded);
|
||||
|
||||
} // namespace gui
|
||||
|
||||
Reference in New Issue
Block a user