SFML question

IMAGE imagename;
if(!imagename:LoadFromeFile("FilePath"));
return 0;

That still makes the image in SFML right? cause the tutorials on the website suggest differently.
I don't really know SFML but if IMAGE is the same as sf::Image, LoadFromeFile is LoadFromFile and : is . (dot) in the real code then it looks correct to me. Why don't you just test and see if it works?

EDIT: Oh and that semicolon on line 2 should be removed if you want return 0; to run only if the image failed to load.
Last edited on
I can't figure out how to setup SFML correctly, since my computer seems to brake plugins in YouTube videos so I can not watch them. So i have to ask.
Of course, because Youtube is the primary and only source of information in the world.
What would all the scholars do without Youtube...
And if you haven't even set up SFML yet, why are you trying to use it?
And if you haven't even set up SFML yet, why are you trying to use it?


This. Before you try working with SFML you need to have it installed.
Topic archived. No new replies allowed.