@pxt wrote:
Hi!
Im using imGui library and one object takes as an argument an arraybool b []
but in order to use in a interactive way i need that array to be fized size according a vector. so i need that bool b [] size be equal to vector size. its possible ?
bool b [] = {false, false}};
// need this fixed sizefor(int i = 0; i <vector.size; i ++){ if (i % 5 != 0) ImGui::SameLine(); ImGui::PushID(i); if(ImGui::Checkbox("##", &b[i])){ } ImGui::PopID(); }
Posts: 3
Participants: 2