0 Members and 3 Guests are viewing this topic.
#include <SFML/System.hpp>#include <SFML/Window.hpp>#include <iostream>using namespace std;using namespace sf;int main(){ sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); App.Create(sf::VideoMode(800, 600, 32), "SFML Window", sf::Style::Fullscreen); bool Running = true; while (Running) { App.Display(); } return EXIT_SUCCESS;}
#include <SFML/System.hpp>#include <SFML/Window.hpp>#include <iostream>#include <SFML/Graphics.hpp>using namespace std;using namespace sf;int main(){ sf::RenderWindow WND(sf::VideoMode(800, 600, 32), "Test WND"); while(WND.IsOpened()) { sf::Event Event; while(WND.GetEvent(Event)) { if(Event.Type = sf::Event::Closed) WND.Close(); } WND.Display(); } return 0;}
#include <SFML/System.hpp>#include <SFML/Window.hpp>#include <iostream>#include <SFML/Graphics.hpp>using namespace std;using namespace sf;int main(){ sf::RenderWindow WND(sf::VideoMode(800, 600, 32), "Test WND"); while(WND.IsOpened()) { sf::Event Event; while(WND.GetEvent(Event)) { if(Event.Type = sf::Event::Closed) WND.Close(); } WND.Clear(); WND.Display(); } return 0;}