title: C++ How does Allegro or SDL create window?
body: <p>How does Allegro or SDL create window for Windows and how to do it by myself?</p>
  
  <p>I'm trying to write WinApi wrapper for games, but I'm completly lost, when I see basic WinApi template and want to wrap it to something like this</p>
  
  <pre><code>init();
  while()
  {
     update();
  }
  exit();
  </code></pre>