I couldn't figure out how to call this function from the imgui gui side. 