Code cleanup and fixes
Added color picker for clear color
This commit is contained in:
parent
99a09ee9f2
commit
5017d380af
3 changed files with 21 additions and 46 deletions
|
|
@ -501,6 +501,12 @@ namespace vks
|
|||
return res;
|
||||
}
|
||||
|
||||
bool UIOverlay::colorPicker(const char* caption, float* color) {
|
||||
bool res = ImGui::ColorEdit4(caption, color, ImGuiColorEditFlags_NoInputs);
|
||||
if (res) { updated = true; };
|
||||
return res;
|
||||
}
|
||||
|
||||
void UIOverlay::text(const char *formatstr, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue