R
R
Ratuwog2015-04-07 22:07:35
C++ / C#
Ratuwog, 2015-04-07 22:07:35

Why can't SFML open an image?

I set the parameter in the form:
image.loadFromFile("images/hero.png")
Everything is fine with the working directory, but in the end it gives an error like in the screenshot ce8b1019553146a29a5c6737298e91dd.png
Can you tell me what's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lis Gein, 2015-04-08
@LisGein

Try this: image.loadFromFile("images\hero.png")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question