This repository has been archived by the owner. It is now read-only.
An asset loading helper library for SDL
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


An asset loading helper library for SDL

X11 (MIT) Licensed code.

SDL_vault is a library that helps loading/freeing Texture and Audio assets from SDL.

It prevents multiple copies of the same asset and frees them automatically once they are no longer in use or after a defined expiration time (in case you want to define one), where the asset will need to be unused for some time before being freed.

It is based on std::shared_ptr, so you won't need to manually free the resources in order to reduce the usage count. It also allows us to get direct pointers to assets, that doesn't increase the usage count, so it won't prevent the asset from being deleted (not recommended, but possible).

Download the PDF documentation here:

To compile, include the files with your compiler (or in your IDE).

Dependencies: SDL2 SDL2_image SDL2_mixer