Threaded View

multiples textured elements do not display

I am working on a n-body code with "glut functions" display. I would like to display each body with a 2D texture from a bmp image.
The coordinates of each body (x, y, z) is in the "pos" array. I try to use glTexCoordPointer with the following display function :