Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

dejaime/SDL_vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An asset loading helper library for SDL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages