Hymn to Beauty
C++ 3D Engine
GuiHelpers.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <limits>
4#include <glm/glm.hpp>
5
6namespace ImGui {
8
12void ShowHelpMarker(const char* description, const float sameLineOffset = 0.0f);
13
15
21void DraggableFloat(const char* label, float& value, float min = std::numeric_limits<float>::lowest(), float max = (std::numeric_limits<float>::max)());
22
24
30void DraggableVec2(const char* label, glm::vec2& value, float min = std::numeric_limits<float>::lowest(), float max = (std::numeric_limits<float>::max)());
31
33
39void DraggableVec3(const char* label, glm::vec3& value, float min = std::numeric_limits<float>::lowest(), float max = (std::numeric_limits<float>::max)());
40
43} // namespace ImGui
Definition: TriggerEditor.cpp:20
void DraggableFloat(const char *label, float &value, float min, float max)
Show widget to edit a float.
Definition: GuiHelpers.cpp:21
void DraggableVec3(const char *label, glm::vec3 &value, float min, float max)
Show widget to edit a vec3.
Definition: GuiHelpers.cpp:51
void ShowHelpMarker(const char *description, const float sameLineOffset)
Helper function that inserts a help marker that displays a tooltip.
Definition: GuiHelpers.cpp:7
void SetNextWindowPosCenter()
Set the next window to be centered.
Definition: GuiHelpers.cpp:72
void DraggableVec2(const char *label, glm::vec2 &value, float min, float max)
Show widget to edit a vec2.
Definition: GuiHelpers.cpp:34