Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: warz on July 19, 2005, 07:36 AM

Title: [C++] Beginning the process of icons.bni support
Post by: warz on July 19, 2005, 07:36 AM
I've found all the necessary documentation on the file format, but what functions should I look into in relation to completing this task?

I've been scoping out fread().

Edit: this (http://astronomy.swin.edu.au/~pbourke/dataformats/tga/) seems to be a pretty good link. ill try that out when i get home from work.
Title: Re: [C++] Beginning the process of icons.bni support
Post by: warz on July 19, 2005, 03:23 PM
I guess my question now is, once I have the extracted targa file, do I save it to disk then use it? I never saw a saved targa file in other bot directories - so is there a way to save it in memory, or something then use it?
Title: Re: [C++] Beginning the process of icons.bni support
Post by: Eric on July 19, 2005, 03:33 PM
Quote from: warz on July 19, 2005, 03:23 PM
I guess my question now is, once I have the extracted targa file, do I save it to disk then use it? I never saw a saved targa file in other bot directories - so is there a way to save it in memory, or something then use it?

Decompress the Targa and create a bitmap of it, all in memory.