Advertisement
Guest User

App.cpp

a guest
Jul 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include "Application.h"
  2. #include "Board.h"
  3. #include "SFML/Graphics.hpp"
  4. #include "SFML/Window.hpp"
  5. Application::Application()
  6. {
  7. }
  8.  
  9.  
  10. Application::~Application()
  11. {
  12. }
  13.  
  14. void Application::initApp()
  15. {
  16.     Board startGame;
  17.     startGame.setTableTexture();
  18.     startGame.setTable();
  19.     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML works!");
  20.  
  21.     while (window.isOpen())
  22.     {
  23.         sf::Event event;
  24.         while (window.pollEvent(event))
  25.         {
  26.             if (event.type == sf::Event::Closed)
  27.             {
  28.                 window.close();
  29.             }
  30.         }
  31.  
  32.         startGame.draw(window);
  33.         window.display();
  34.     }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement