title: Getting smooth, big points in OpenGL
body: <p>I started playing around with OpenGL and GLUT. I would like to draw some points, but the problem is that they turn out to be squares, and I would like them to be round dots (filled circles).</p>
  
  <p>This is what I do:</p>
  
  <pre><code>void onInitialization( ) 
  { 
      glEnable( GL_POINT_SMOOTH );
      glEnable( GL_BLEND );
      glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
      glPointSize( 6.0 );
  }    
  
  void onDisplay()
  {
      glClearColor( 1.0f, 1.0f, 1.0f, 1.0f );
      glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
  
      glBegin( GL_POINTS );
          glColor3f( 0.95f, 0.207, 0.031f );
      for ( int i = 0; i &lt; g_numPoints; ++i )
      {
          glVertex2f( g_points[i].X, g_points[i].Y );
      }
      glEnd();
      glFinish();
      glutSwapBuffers();
  }
  </code></pre>
  
  <p>This is the result:
  <img src="https://dl.getdropbox.com/u/1470243/Screenshot-5.jpg" alt="Result of the above code"></p>
  
  <p>The points show up where expected, only their shape is wrong.</p>