Jump to content

  • Log In with Google      Sign In   
  • Create Account






SDL_vault is now functional.

Posted by dejaime, 08 April 2014 · 399 views

SDL2 SDL_vault c++11 c++ Game Development BuildAndGun
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.




0 user(s) viewing

0 members, 0 guests, 0 anonymous users

Latest Visitors

My Contacts' Journals

September 2014 »

S M T W T F S
  1 23456
78910111213
14151617181920
21222324252627
282930    

Google Shared Items

PARTNERS