demotool/colorgrading.hh

34 lines
820 B
C++

#pragma once
#ifndef REAL_BUILD
# include "externals.hh"
#endif
namespace ImGui {
// Full color grading controls with 2 tabs (color wheel mode / component mode).
bool ColorGradingControls(
char const* const name ,
float* const red ,
float* const green ,
float* const blue ,
const float base = 0.f ,
const float unit = 1.f ) noexcept;
// Hue/saturation wheel with XY pad. Can also be manipulated using Ctrl+Wheel
// (rotates hue) and Ctrl+Shift+Wheel (changes saturation).
bool HueSaturationPad(
char const* const name ,
float* const hue ,
float* const saturation ,
const float size = 0.f ) noexcept;
// Color selection bar.
bool ColorSelectorBar(
float* const value ,
const float base ,
const float unit ,
const ImVec4 color ,
char const* const label ) noexcept;
} // namespace ImGui