title: WxWidgets DrawText to Print a Variable on Screen
body: <p>I am trying to use wxWidgets in C++ to use DrawText to draw a string that says "Game Over" for my game and also displays the ending game score which is an int variable.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>void CFunction::Draw(wxDC &amp;dc)
  {
      if (mGame != NULL &amp;&amp; mGame-&gt;IsGameOver())
      {
  
          wxFont font(75, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false);
          dc.SetFont(font);
          dc.SetTextForeground(wxColour(221, 34, 34));
          dc.DrawText(L"GAME OVER!", 250, 100);
      }
  }
  </code></pre>
  
  <p>Right now it prints "GAME OVER!" but I want it to print the variable stored in mGame->GetScore(), so for example if the score was 10 at the end of the game it should show on the screen:</p>
  
  <p>"GAME OVER! Score: 10"</p>
  
  <p>Anyone know how to do this in wxWidgets with wxDraw? </p>