Euphoria
ui.h
Go to the documentation of this file.
1#pragma once
2
3namespace eu::render
4{
5 struct FrameBuffer;
6}
7
8namespace eu::imgui
9{
10
12{
13 unsigned int program_handle = 0;
16};
17
31
32enum class ImageShader
33{
34 None,
37};
38
39
40void imgui_text(const std::string& str);
41void imgui_image(const char* name, const render::FrameBuffer& img, ImguiShaderCache* cache, ImageShader shader);
42bool simple_gamma_slider(const char* label, float* gamma, float curve = 1.5f, float min_gamma = 1.6f, float max_gamma = 2.8f);
43
44bool drag(const char* const label, v3* drag);
45bool drag(const char* const label, Ypr* drag);
46
47}
void imgui_image(const char *name, const render::FrameBuffer &img, ImguiShaderCache *cache, ImageShader shader)
void imgui_text(const std::string &str)
ImageShader
Definition ui.h:33
bool drag(const char *const label, v3 *drag)
bool simple_gamma_slider(const char *label, float *gamma, float curve=1.5f, float min_gamma=1.6f, float max_gamma=2.8f)
Definition ui.h:4
A (inclusive) range between two values.
Definition range.h:19
yaw + pitch + roll
Definition axisangle.h:33
ImguiShaderCache(const ImguiShaderCache &)=delete
ImguiShaderCache & operator=(ImguiShaderCache &&)=delete
ImguiShaderCache(ImguiShaderCache &&)=delete
ImguiShaderProgram linear_to_gamma_shader
Definition ui.h:28
ImguiShaderProgram depth_ortho_shader
Definition ui.h:29
ImguiShaderCache & operator=(const ImguiShaderCache &)=delete
unsigned int program_handle
Definition ui.h:13
"render to texture" feature
Definition texture.h:101
a 3d vector
Definition vec3.h:27