The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: Farabi on November 10, 2011, 04:56:09 AM

Title: TGA Library
Post by: Farabi on November 10, 2011, 04:56:09 AM
http://www.cs.wisc.edu/graphics/Gallery/LibTarga/

I dont know about the license, I make a few adjusment based on this code. I think the code is outdated, I compiled it with the newest GCC and it yielded a wrong stupid message like the periscop is not for this or something, what is the different anyway, it is still stdcall, or something.

Well, the lib is a little bit weird. Each function is autobalancing the stack, so you did not to worry about balancing it. How to use this lib is still the same with the web above, I even keep the function name, but adding anew function tga_free since it used C++ malloc which is not compatible with MASM free function, use MASM free function, and it crashed, so do virtualfree, the standard C lib is kept the handle somewhere, so I need to internally use them.

29 KBytes, you wont find any better than this.  :green

Anyway, can I claimed this as mine? Even it is obviously, I just make a few adjusment, but hey, GCC is a hell for civilliance like me  :cheekygreen:
Title: Re: TGA Library
Post by: Farabi on November 10, 2011, 04:57:17 AM
Sorry, My Browser, *you know what* force an autoupdate, and it burn up my processor, and suddenly it autoshutdown.