🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Load a tga from a custom resource
Hello i`m new to the forum, and i have been following the lessons from nehe, and i have problem, i want to load a tga image compressed or uncompressed from a resource file; how to make a custom resource file is explained in:
http://gpwiki.org/index.php/C:Custom_Resource_Files
so what i want is a mix between the custom resource file and the tga load, so i can load tga files in the way that nehe explained from the custom resource files.
sorry for my english i speak spanish.
it's pretty simple, the hardest part is finding the starting point for the file as when you have a resource file each file does not start at 0 but rather any arbitrary number well defined in whatever resource file you have.
Once you got that immediately after you open the file use fseek to shift forward to that file beginning.
Now you can load the tga normally
Once you got that immediately after you open the file use fseek to shift forward to that file beginning.
Now you can load the tga normally
i can´t make it work, can someone please show me an example.
i want to load 32 bits tga compressed.
i want to load 32 bits tga compressed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement