Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Array and Vectors

$
0
0

@pxt wrote:

Hi!
Im using imGui library and one object takes as an argument an array bool 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 size

        for(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

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images