– Re: How to duplicate a cube and control each one independently？
In Reply To
You can store the geometry (vertices, colors, texture coordinates, indices, normals, ...) of a cube or any more complicated model into one or several vertex buffer objects. You can use the same geometry with different transforms (rotation, translation, scale, ...). This tutorial might help you:
You have to understand how the model-view matrix works, you'll need to use glLoadIdentity and maybe glMultMatrix and glLoadMatrix if you choose to store the transforms into matrices.
Don't use display lists, they are half broken in numerous drivers, it's a waste of time even on very old hardware.