title: Drawing many spheres in OpenGL
body: <p>I want to draw many spheres (~100k) using OpenGL. So far, I'm doing something like</p>
  
  <pre><code>for (int i=0; i&lt;pnum; i++){
       glPushMatrix();
       glTranslatef(bpos[i].x, bpos[i].y, bpos[i].z);
       glCallList(DListSPHERE);
       glPopMatrix();
  }
  </code></pre>
  
  <p>Before using proper spheres, I used <code>GL_POINTS</code>. That allowed me to call <code>glDrawArrays</code> with an array containing all points which was very efficient. Is there a better way than the above code to draw many, identical objects?</p>