title: Half cylinder/Closed cylinder in opengl
body: <p>I currently have a cylinder </p>
  
  <pre><code>glPushMatrix();
  glTranslatef(cylinder-&gt;pos[0], cylinder-&gt;pos[1], cylinder-&gt;pos[2]);
  glRotatef(cylinder-&gt;angle, -1.0, 0, 0);
  gluDisk(quad, 0.0, cylinder-&gt;radius, 300, 90);
  gluCylinder(quad, cylinder-&gt;radius, cylinder-&gt;radius, cylinder-&gt;height, 30, 1);
  gluDeleteQuadric(quad);
  glPopMatrix();
  </code></pre>
  
  <p>but it only renders half of a cylinder instead of the whole thing (the half coming towards the view). Second issue is I don't know how to close the cylinder. The gludisk only closes the bottom of the cylinder and I'm not sure how to close the top side.</p>