0

In their official tutorials it is said that to draw graphics on screen, i have to use RenderWindow instead of Window. But when i write sf:: RenderWindow window, error pops up saying that there is no RenderWindow in sf:: . I copy-pasted the code but it still does not works. What could possibly be the reason behind this ?

anonymous
  • 514
  • 1
  • 8
  • 21

1 Answers1

1

sf::Window is part of the SFML Window module but sf::RenderWindow is part of the SFML Graphics module. Hence you have to include SFML/Graphics.hpp in order to use it.

Alayric
  • 291
  • 1
  • 2
  • 11