title: Drawing in OpenGL is always white
body: <p>I'm trying to draw some simple triangles in OpenGL.
  The problem is that my triangle is always white, wheras I put some color with the glColor3f function:</p>
  
  <pre><code>def OnDraw(self):
  
      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
      glClearColor(.1, 0.1, 0.1, 1.0)
  
      glBegin (GL_TRIANGLES)
      glColor3f (1.0, 0.0, 0.0)
      glVertex2f (0.25, 0.25)
      glColor3f (0.0, 1.0, 0.0)
      glVertex2f (0.12, 0.25)
      glColor3f (0.0, 0.0, 1.0)
      glVertex2f (0.25, 0.4)
      glEnd()
  </code></pre>
  
  <p>and here is my initialization:</p>
  
  <pre><code>def InitGL(self):
      # set viewing projection
      glMatrixMode(GL_PROJECTION)
      glFrustum(-0.5, 0.5, -0.5, 0.5, 1.0, 3.0)
  
      # position viewer
      glMatrixMode(GL_MODELVIEW)
      glTranslatef(0.0, 0.0, -2.0)
  
      glEnable(GL_DEPTH_TEST)
      glEnable(GL_LIGHTING)
      glEnable(GL_LIGHT0)
  </code></pre>
  
  <p>Any idea?</p>