And now I got error
||=== Build: Release in sfml (compiler: GNU GCC Compiler) ===|
C:\Users\myName\Desktop\file\ sfml\main.cpp||In function 'int main()':|
C:\Users\myName\Desktop\file\ sfml\main.cpp|20|error: 'class sf::RenderWindow' has no member named 'disp1lay'|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
And program is:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.disp1lay();
}
return 0;
}
in code block in c++.