indow)</div><div class="line">{</div><div class="line">    <span class="comment">// Window or OpenGL context creation failed</span></div><div class="line">}</div></div><!-- fragment --><p>This creates a 640 by 480 windowed mode window with an OpenGL context. If window or OpenGL context creation fails, <code>NULL</code> will be returned. You should always check the return value. While window creation rarely fails, context creation depends on properly installed drivers and may fail even on machines with the n