Jump to content
  • Advertisement
  • entries
    19
  • comments
    46
  • views
    40119

SDL_vault is now functional.

Sign in to follow this  
DejaimeNeto

966 views

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.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!