Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Application.h"
- #include "Board.h"
- #include "SFML/Graphics.hpp"
- #include "SFML/Window.hpp"
- Application::Application()
- {
- }
- Application::~Application()
- {
- }
- void Application::initApp()
- {
- Board startGame;
- startGame.setTableTexture();
- startGame.setTable();
- sf::RenderWindow window(sf::VideoMode(800, 600), "SFML works!");
- while (window.isOpen())
- {
- sf::Event event;
- while (window.pollEvent(event))
- {
- if (event.type == sf::Event::Closed)
- {
- window.close();
- }
- }
- startGame.draw(window);
- window.display();
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement