Skip to content

gilzoide/physfs-funopen

Repository files navigation

PhysicsFS funopen

Easily wrap a PhysicsFS PHYSFS_File as a standard C FILE with a single function call.

Note: this library relies in the funopen functions, which is not available in Windows and Web/Emscripten platforms.

API

  • FILE *PHYSFS_funopenWrap(PHYSFS_File *file): wrap a PhysicsFS file into a standard C FILE.
  • FILE *PHYSFS_funopenWrite(const char *filename): opens a PhysicsFS file for writing and wrap it into a standard C FILE.
  • FILE *PHYSFS_funopenAppend(const char *filename): opens a PhysicsFS file for appending and wrap it into a standard C FILE.
  • FILE *PHYSFS_funopenRead(const char *filename): opens a PhysicsFS file for reading and wrap it into a standard C FILE.

How to integrate in CMake projects

add_subdirectory(path/to/physfs-funopen)
target_link_libraries(my_awesome_target physfs_funopen)

About

Easily wrap PhysicsFS files as standard C FILEs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published