Jump to content
  • Advertisement
Sign in to follow this  
Drew_Benton

ZLIB for dummies

This topic is 4982 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just wanted to share this resource I found for using ZLIB very easily! The code is in the zlibtool.zip file at the end. The folder of great use is "zlibengn". Basically it is a premade wrapper for using ZLIB. It's really easy to use as well, here's a short demo:
#include "zlibengn.h"

#pragma comment(lib,"zdll.lib")

ZlibEngine z;

int main(int argc, char* argv[])
{
	z.compress( "zlib.h","zlib.h__");
	z.decompress( "zlib.h__", "test.h");
	return 0;
}
The main reason I am sharing this is because I could not find any good tutorials or helpful posts in GameDev that made using ZLIB easy (something for dummies such as myself [smile]). I tried searching google, but could not really find a "simple spoon feeding" type of explanation/sample code. I hope this can be of some use to someone, as it has been for me. Cheers! - Drew

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!