我正在考虑在我的游戏引擎项目中使用 PhysicsFS,但我想首先确保它完全独立于平台。那是因为我想在完成 Windows 代码(例如 Wii Homebrew)后将我的引擎移植到一些相当晦涩的平台。
最佳答案
根据开发人员在 their site 上提供的官方规范它:
Compiles/runs on GNU/Linux (x86, PPC, MIPS, Sparc, Alpha, Itanium, and x86-64 tested; gcc). Compiles/runs on Windows, Win95 and later (x86 tested; Visual C++, Visual Studio, Cygwin, and MinGW). Compiles/runs on Mac OS X (x86 and PPC tested; XCode).
甚至
May compile and run elsewhere with little to no modification. Success stories and patches are welcome.
所以答案是肯定的,它与平台无关。
2011 年 4 月 20 日更新
按照@rubenvb 的建议,我最好将其定义为跨平台 库。这是因为 PhysicsFS 库利用 #ifdefs
并为 Windows、BeOS/Haiku、Mac OS X、OS/2、PocketPC、POSIX 和 UNIX 平台提供特定的实现。
关于c++ - PhysicsFS 是平台独立的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5688902/