#include <SFML/Graphics.hpp> int main() { sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application"); while (Window.isOpened()) { sf::Event Event; while (Window.pollEvent(Event)) { switch (Event.type) { case sf::Event::Closed: Window.close(); break; default: break; } } Window.clear(sf::Color(0, 255, 255)); Window.display(); } return 0; }
testsfml.cpp: In function 'int main()': testsfml.cpp:7:27: error: 'class sf::RenderWindow' has no member named 'isOpened' while (Window.isOpened()) ^
IsOpened
IsOpen
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)