Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. #include "MainWindow.h"
  4.  
  5. int SCREEN_WIDTH = 800;
  6. int SCREEN_HEIGHT = 600;
  7.  
  8. int main()
  9. {
  10.     std::cout << "Hello, World!" << std::endl;
  11.  
  12.     Graphics::MainWindow window;
  13.     window.CreateWin(L"Graphics Engine", SCREEN_WIDTH, SCREEN_HEIGHT);
  14.     window.Show();
  15.  
  16.     MSG messages;
  17.     while (GetMessage(&messages, NULL, 0, 0) > 0)
  18.     {
  19.         TranslateMessage(&messages);
  20.         DispatchMessage(&messages);
  21.     }
  22.  
  23.     window.Close();
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement