An asset loading helper library for SDL
C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
AudioVault.h
LICENSE
README.md
TextureVault.h
VaultEntry.h
types.h

README.md

SDL_vault

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).

http://www.buildandgun.com

Download the PDF documentation here: https://drive.google.com/file/d/0BwuwF8TLK3q8bGc1ODFOM0phczg

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

Dependencies: SDL2 SDL2_image SDL2_mixer