Merge pull request #924 from SaschaWillems/sample_vertexattributes

Add vertex attributes sample
This commit is contained in:
Sascha Willems 2022-01-22 10:19:24 +01:00 committed by GitHub
commit 821a0659a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 2004 additions and 690 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);