{"id":16186927,"url":"https://github.com/robloach/sdl_assetsys","last_synced_at":"2026-01-20T07:32:44.262Z","repository":{"id":193751914,"uuid":"689422958","full_name":"RobLoach/SDL_assetsys","owner":"RobLoach","description":"Use the file abstraction library, assetsys, with SDL","archived":false,"fork":false,"pushed_at":"2024-03-19T18:14:51.000Z","size":12,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T18:02:07.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobLoach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-09T18:54:06.000Z","updated_at":"2023-10-14T03:25:30.000Z","dependencies_parsed_at":"2024-03-19T19:45:10.183Z","dependency_job_id":null,"html_url":"https://github.com/RobLoach/SDL_assetsys","commit_stats":null,"previous_names":["robloach/sdl_assetsys"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RobLoach/SDL_assetsys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2FSDL_assetsys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2FSDL_assetsys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2FSDL_assetsys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2FSDL_assetsys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/SDL_assetsys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2FSDL_assetsys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28598157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T07:19:51.472Z","updated_at":"2026-01-20T07:32:44.246Z","avatar_url":"https://github.com/RobLoach.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDL_assetsys\n\nUse the file system abstraction library, [assetsys.h](https://github.com/mattiasgustavsson/libs/blob/main/assetsys.h), with SDL.\n\n## API\n\n``` c\nSDL_RWops* SDL_RWFromAssetsys(assetsys_t* sys, const char* path);\nSDL_Surface* SDL_LoadBMP_Assetsys(sys, path);\nSDL_Surface* IMG_Load_Assetsys(sys, path);\nSDL_Texture* IMG_LoadTexture_Assetsys(renderer, sys, path);\nMix_Chunk* SDL_LoadWAV_Assetsys(sys, path, spec, audio_buf, audio_len);\nMix_Music* Mix_LoadMUS_Assetsys(sys, path);\nMix_Chunk* Mix_LoadWAV_Assetsys(sys, path);\nvoid* SDL_LoadFile_Assetsys(sys, path, datasize);\nSDL_Surface* STBIMG_Load_Assetsys(sys, path);\n```\n\n## Example\n\n``` c\n#include \u003cstdio.h\u003e\n#include \u003cSDL2/SDL.h\u003e\n\n#define SDL_ASSETSYS_IMPLEMENTATION\n#include \"SDL_assetsys.h\"\n\nint main(int argc, char* argv[]) {\n\tSDL_Init(0);\n\n    assetsys_t* sys = assetsys_create(0);\n    assetsys_mount(sys, \"resources\", \"/res\");\n\n    SDL_RWops* file = SDL_RWFromAssetsys(sys, \"/res/test.txt\");\n\n    int size = SDL_RWsize(file);\n\n    char output[256];\n    SDL_RWread(file, output, 1, size);\n\n    printf(\"Output: %s\\n\", output);\n    // =\u003e Hello, World!\n\n    SDL_RWclose(file);\n\n    assetsys_destroy(sys);\n\tSDL_Quit();\n\n    return 0;\n}\n```\n\n## License\n\n*SDL_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](LICENSE) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fsdl_assetsys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Fsdl_assetsys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fsdl_assetsys/lists"}