3#include "dear_imgui/imgui.h"
22 ImVec2
drag = { 0.5f, 0.5f };
75bool header(
const char* label,
bool* closeable =
nullptr);
94 constexpr operator bool()
const {
return started; }
99 bool check(
const char* label,
bool* v)
const;
101 bool slider(
const char* label,
float* v)
const;
102 void text(
const char* label,
const std::string& str)
const;
103 bool edit(
const char* label, std::string* str)
const;
105 void display(
const char* label,
bool b)
const;
110 bool simple_gamma_slider(
const char* label,
float* gamma,
float curve = 1.5f,
float min_gamma = 1.6f,
float max_gamma = 2.8f)
const;
111 bool drag(
const char* label,
v3*
drag,
float reset_value = 0.0f)
const;
114 bool drag(
const char* label,
float*
drag,
float speed = 1.0f)
const;
constexpr float min(float lhs, float rhs)
constexpr float max(float lhs, float rhs)
void begin_disabled(bool enabled)
bool header(const char *label, bool *closeable=nullptr)
bool centered_button(const char *label, ButtonStyle style=ButtonStyle::secondary, const std::optional< ImVec2 > &button_size=std::nullopt)
void progress(const char *title, std::optional< float > percentage, ProgressSize size=ProgressSize::normal)
bool button(const char *label, ButtonStyle style=ButtonStyle::secondary, const std::optional< ImVec2 > &button_size=std::nullopt)
Represents color in gamma (non-linear) space (aka sRGB).
Contains the parameters for an S-Curve.
ImguiShaderCache(const ImguiShaderCache &)=delete
ImguiShaderCache & operator=(ImguiShaderCache &&)=delete
ImguiShaderCache(ImguiShaderCache &&)=delete
ImguiShaderProgram linear_to_gamma_shader
ImguiShaderProgram depth_ortho_shader
ImguiShaderCache & operator=(const ImguiShaderCache &)=delete
unsigned int program_handle
bool scurve(const char *label, core::SCurve *scurve, SCurveGuiState *gui, FlipX flip_x, const ImVec2 &requested_widget_size=ImVec2{ 100, 100 }) const
bool simple_gamma_slider(const char *label, float *gamma, float curve=1.5f, float min_gamma=1.6f, float max_gamma=2.8f) const
bool slider(const char *label, float *v) const
static PropTable Begin(const char *label="properties")
PropTable(const PropTable &)=delete
bool check(const char *label, bool *v) const
void text(const char *label, const std::string &str) const
bool drag(const char *label, Ypr *drag) const
void readonly(const char *label, const v3 &v) const
void operator=(const PropTable &)=delete
void display(const char *label, bool b) const
bool drag(const char *label, float *drag, float speed=1.0f) const
bool edit(const char *label, std::string *str) const
bool transform(m4 *m) const
void transform(const m4 &m) const
void readonly(const char *label, const Ypr &y) const
bool slider(const char *label, float *v, float min, float max) const
bool drag(const char *label, v3 *drag, float reset_value=0.0f) const
void operator=(const PropTable &&)=delete
bool drag(const char *label, int *drag) const
void readonly(const char *label, const std::string &text) const
PropTable(PropTable &&r) noexcept
void image(const char *label, const render::FrameBuffer &img, ImguiShaderCache *cache, ImageShader shader) const
bool color(const char *label, Rgb *color) const
bool drag(const char *label, Rui *drag) const
Represents the GUI state for an S-curve.
static constexpr std::size_t num_points
number of points to draw, more points means smoother curve, but more expensive
std::array< ImVec2, num_points > point_cache
SCurveGuiState(float x, float y)
"render to texture" feature