SFML community forums

General => SFML projects => Topic started by: .teri on August 05, 2011, 01:02:47 am

Title: Loading resources using sf::InputStream with physfs
Post by: .teri on August 05, 2011, 01:02:47 am
There was an attempt to load resources using physfs... but without use the sf::InputStream. I wrote a module that load resources using the physfs library (https://legacy.sfmluploads.org/index.php?page=view_file&file_id=43).

Works well, at least for me. 2 things to bear in mind:

-You must initialize the physfs library and mount the paths.
-The class only opens the file for reading.

I hope that is useful. In fact anyone can write this module easily.
Title: Loading resources using sf::InputStream with physfs
Post by: Laurent on August 05, 2011, 08:07:25 am
Hi

Why don't you put it on the wiki? :)
Title: Which category?
Post by: .teri on August 07, 2011, 01:11:38 pm
Quote from: "Laurent"
Hi

Why don't you put it on the wiki? :)


I wonder if must be in tutorial or projects.
Title: Loading resources using sf::InputStream with physfs
Post by: Laurent on August 07, 2011, 01:51:02 pm
If you just provide source code, it's a project.
If you write a complete tutorial about it, it's a tutorial ;)