Hello, I'm venturing into OpenGL and so far I know the basics of creating figures. I need to create a number of bars ranging from 1 to 64, the problem is that I need to do this with a FOR. When the first for counter starts, it creates the first bar and when it changes the counter it creates another bar and the first one goes out. From what I've understood so far, it's not like he's creating another bar, but changing the position of the first bar.
Is there a way to do this as if it were a vector, type glBegin [jk] so that I can create a defined number of bars?