FINE YA DINGUS, for you, because you're nice. Not for G...
#include <memory>
#include <iostream>
#include "StateMachine.hpp"
#include "Level1State.hpp"
#include "PlayState.hpp"
#include "GameState.hpp"
#include "StateMachine.hpp"
#include "MenuState.hpp"
#include "Application.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
int main() {
sf::RenderWindow window( sf::VideoMode(1280, 720, 32), "Vieze kut" );
sf::Vertex backgroundgr[] =
{
sf::Vertex(sf::Vector2f(0, 0), sf::Color::Blue),
sf::Vertex(sf::Vector2f(0, 1280), sf::Color::Blue),
sf::Vertex(sf::Vector2f(720, 1280), sf::Color::Cyan),
sf::Vertex(sf::Vector2f(720, 0), sf::Color::Cyan),
};
while( window.isOpen() ) {
sf::Event event;
while( window.pollEvent( event ) ) {
if( event.type == sf::Event::Closed ) {
window.close();
}
}
window.clear();
window.draw(backgroundgr, 4, sf::Quads);
window.display();
}
return EXIT_SUCCESS;
}