Started working on sample showing comparing separate/interleaved vertex attributes

This commit is contained in:
Sascha Willems 2021-12-26 18:42:03 +01:00
parent 91958acad2
commit 5f1aac61ca
10 changed files with 929 additions and 0 deletions

View file

@ -434,6 +434,13 @@ namespace vks
return res;
}
bool UIOverlay::radioButton(const char* caption, bool value)
{
bool res = ImGui::RadioButton(caption, value);
if (res) { updated = true; };
return res;
}
bool UIOverlay::inputFloat(const char *caption, float *value, float step, uint32_t precision)
{
bool res = ImGui::InputFloat(caption, value, step, step * 10.0f, precision);

View file

@ -81,6 +81,7 @@ namespace vks
bool header(const char* caption);
bool checkBox(const char* caption, bool* value);
bool checkBox(const char* caption, int32_t* value);
bool radioButton(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 sliderInt(const char* caption, int32_t* value, int32_t min, int32_t max);