Jump to content

1 user(s) viewing

0 members, 1 guests, 0 anonymous users

Latest Visitors

My Contacts' Blogs

April 2017 »

2324 25 26272829

Google Shared Items

- - - - -

SDL_vault is now functional.

SDL2 SDL_vault c++11 c++ Game Development BuildAndGun
4: Adsense

Hello Again,

Looks like it is all done now. I just did not create that automatic build (sorry about that). I really don't need this, I am just compiling the library along with my project; it is really small, that's easy to do.

So, the GitHub repo is here.

The documentation is available in PDF here. (edit: Moved from Dropbox to Google Drive)

It is really easy to use, just create a Vault object and use the Get*() functions instead of manually loading the Textures and Audio assets. Choose whether you want to use the automatic periodic free or prefer to call FreeUnused() manually. I'll try and create a blog post with a code example in the next week.

In addition to my last post, I added the possibility of pushing user-loaded or user-created assets into the vaults. Just push them there with a unique string ID (ideally the file path, but it can actually be anything). This means that you can actually use the library in a way that it doesn't ever load a file. If you push a texture with identifier "Zombie" it will try and load a file called "Zombie", will fail and return NULL. You can then load it manually and push it. For manually loaded assets, you can use CheckTexture for this existence test (what would be wiser) and then Get*() it in case it is found.

Moving on, it is useable now, X11 (MIT) license, be my guest! Hope you guys use it, as I certainly will.

More information, on my blog: http://www.buildandgun.com

Over and Out.

Note: GameDev.net moderates comments.