简体   繁体   中英

ImGui Progress Bar is ambiguous

I have to add a progress bar into my application using imgui but I can't figure out how it does work, this is its signature:

void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay)

so fraction is used to set the current progress. overlay used to set a title for example but I can't understand how size_arg works?

suppose I want to set my progress bar from 0 to 2, how can I do it with the size_arg argument?

thanks

I have to add a progress bar into my application using imgui but I can't figure out how it does work, this is its signature:

void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay)

so fraction is used to set the current progress. overlay used to set a title for example but I can't understand how size_arg works?

suppose I want to set my progress bar from 0 to 2, how can I do it with the size_arg argument?

thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM