๐Ÿ“ฆ RobLoach / raylib-assetsys

Use the file system abstraction library, assetsys.h, to load raylib assets from .zip files.

โ˜… 11 stars โ‘‚ 1 forks ๐Ÿ‘ 11 watching โš–๏ธ zlib License
raylib
๐Ÿ“ฅ Clone https://github.com/RobLoach/raylib-assetsys.git
HTTPS git clone https://github.com/RobLoach/raylib-assetsys.git
SSH git clone git@github.com:RobLoach/raylib-assetsys.git
CLI gh repo clone RobLoach/raylib-assetsys
Rob Loach Rob Loach Update README.md 0d8c8a8 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ cmake
๐Ÿ“ test
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitmodules
๐Ÿ“„ CMakeLists.txt
๐Ÿ“„ libs
๐Ÿ“„ LICENSE
๐Ÿ“„ raylib-assetsys.h
๐Ÿ“„ README.md
๐Ÿ“„ README.md

raylib-assetsys

Use the file system abstraction library, assetsys.h, with raylib, to allow loading assets from .zip files.

Example

`` c #include <raylib.h> #define RAYLIB_ASSETSYS_IMPLEMENTATION #include "raylib-assetsys.h" int main(int argc, char* argv[]) { // Initialize assetsys, and mount resources.zip as /data InitAssetsys("resources.zip", "/data"); // Load cat.png from the zip Image cat = LoadImageFromAssetsys("/data/cat.png"); UnloadImage(cat); // Close the assetsys CloseAssetsys(); return 0; } %%CODEBLOCK0%% c bool InitAssetsys(char const* path, char const* mount_as); bool MountAssetsys(const char* path, const char* mount_as); bool IsAssetsysReady(); void CloseAssetsys(); unsigned char *LoadFileDataFromAssetsys(const char *fileName, int *dataSize); char *LoadFileTextFromAssetsys(const char *fileName); Image LoadImageFromAssetsys(const char* fileName); ``

License

raylib-assetsys is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check LICENSE for further details.