Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Loading resources using sf::InputStream with physfs  (Read 4298 times)

0 Members and 1 Guest are viewing this topic.

.teri

  • Newbie
  • *
  • Posts: 28
    • View Profile
Loading resources using sf::InputStream with physfs
« 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.

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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Loading resources using sf::InputStream with physfs
« Reply #1 on: August 05, 2011, 08:07:25 am »
Hi

Why don't you put it on the wiki? :)
Laurent Gomila - SFML developer

.teri

  • Newbie
  • *
  • Posts: 28
    • View Profile
Which category?
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Loading resources using sf::InputStream with physfs
« Reply #3 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 ;)
Laurent Gomila - SFML developer