Skip to content

Source: SFML PhysFS

eXpl0it3r edited this page Oct 18, 2012 · 1 revision

A class that adapts PhysFS to SFML with a custom sf::InputStream

A simple module that loads resources using the physfs library for be used with ::OpenFromStream(). Also this module is an example of how should be implemented the InputStream class. This module can be used freely.

Usage

sf::Music coolmusic;
sf::physfs musicstream("coolmusic.ogg");
coolmusic.OpenFromStream(musicstream);

Notes

  • You must initialize first the physfs library and mount the paths.

  • The file will be open only for reading.

Clone this wiki locally