You really should be using display lists. Just build a list with the vertices of the cube centered about the origin. Then, for each cube you want rendered, translate to the position you want to render it, and call your list. it should look something like this: