UI overlay float slider

This commit is contained in:
saschawillems 2017-10-30 18:02:51 +01:00
parent 15f85d6e10
commit 287a9b5762
2 changed files with 7 additions and 0 deletions

View file

@ -568,6 +568,12 @@ namespace vks
return ImGui::InputFloat(caption, value, step, step * 10.0f, precision);
}
bool UIOverlay::sliderFloat(const char* caption, float* value, float min, float max)
{
ImGui::SliderFloat(caption, value, min, max);
return false;
}
bool UIOverlay::comboBox(const char *caption, int32_t *itemindex, std::vector<std::string> items)
{
if (items.empty()) {

View file

@ -90,6 +90,7 @@ namespace vks
bool header(const char* caption);
bool checkBox(const char* caption, bool* value);
bool inputFloat(const char* caption, float* value, float step, uint32_t precision);
bool sliderFloat(const char* caption, float* value, float min, float max);
bool comboBox(const char* caption, int32_t* itemindex, std::vector<std::string> items);
void text(const char* formatstr, ...);
};