1
SFML projects / Re: MyLib, Datapacker, File integrity checker osv
« on: January 12, 2012, 11:33:34 pm »Quote from: ".teri"
Quote from: "Haikarainen"
With SFML (WIP):Code: [Select]
my::Data::Package Test;
Test.Load("Test.pkg");
sf::Image Img;
Img.LoadFromMemory(Test.GetFileData("irimage.png"), Test.GetFileSize("irimage.png"));
Test.Close();
I dont know... sf::InputStream is created for avoid load resources from memory.
Sorry for being a baddie and asking stupid questions, but what's the advantage of using sf::InputStream instead of LoadFromMemory?