title: opengl white window - Visual Studio 2010
body: <p>I am opengl beginner.
  I set the DLLs, Library, Header but, error occurred.
  My development environment is win7 ( 64bit ).</p>
  
  <p>For reference -
  DLLs : C:\Windows\System32, C:\Windows\SysWOW64 // glu32.dll, glut.dll, glut32.dll, opengl32.dll</p>
  
  <p>Libs : C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib, C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib // glut.lib, glut32.lib</p>
  
  <p>Header : C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include\gl, C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\gl  // GL.H, GLAUX.H, GLU.H, glut.h</p>
  
  <pre><code>#include &lt;Windows.h&gt;
  #include &lt;gl/glut.H&gt;
  
  void DoDisplay ( void )
  {
      glClearColor ( 0.0f, 0.0f, 1.0f, 1.0f );
      glClear( GL_COLOR_BUFFER_BIT );
  
      glBegin ( GL_TRIANGLES );
  
      glVertex2f ( 0.0, 0.5 );
      glVertex2f ( -0.5, -0.5 );
      glVertex2f ( 0.5, -0.5 );
  
      glEnd ();
      glFlush ();
  }
  
  int main ( int argc, char ** argv )
  {
      glutInit ( &amp;argc, argv );
      glutInitDisplayMode ( GLUT_RGB | GLUT_DOUBLE );
      glutInitWindowSize ( 300, 300 );
      glutInitWindowPosition ( 0, 0 );
      glutCreateWindow ( "OpenGL" );
      glutDisplayFunc ( DoDisplay );
      glutMainLoop ();
  
      return 0;
  }
  </code></pre>
  
  <p>Edit :</p>
  
  <p>White Window : <a href="http://i.stack.imgur.com/9GJoN.jpg" rel="nofollow">http://i.stack.imgur.com/9GJoN.jpg</a></p>
  
  <p>This code is simply output the white triangle.</p>
  
  <p>Win32 Project -> Console Project.</p>
  
  <p>Problem not solved.. sorry.</p>
  
  <p>Error is <a href="http://i.stack.imgur.com/9GJoN.jpg" rel="nofollow">http://i.stack.imgur.com/9GJoN.jpg</a></p>