Texture Viewer 3 w/ img_lib Wiki
A Texture View that supports TGA and other formats.
Brought to you by:
beemfx
TexView3 is very basic image viewing software. It was designed for the purpose of loading textures into video games, but those purposes are now obsolete with modern libraries. It is still a useful application, and does feature some TGA handling software which in general is not widely supported.
Basically TexView3 is a texture viewer designed to view TGA files since there seems to be no native support in the Windows OS for TGA files. The library also includes a very easy to use library for loading images. This library is called img_lib2. TexView3 demonstrates how to use the library, but honestly it is very simple as it only has a few functions.
See img_lib.h for the API.
HIMG IMG_FUNC IMG_OpenMemory(img_void* pData, img_dword nSize); HIMG IMG_FUNC IMG_OpenA(img_char* szFilename); HIMG IMG_FUNC IMG_OpenW(img_wchar* szFilename); img_bool IMG_FUNC IMG_Delete(HIMG hImage); img_bool IMG_FUNC IMG_GetDesc( HIMG hImage, IMG_DESC* lpDescript); img_bool IMG_FUNC IMG_CopyBits( HIMG hImage, IMG_DEST_RECT* pDest, IMGFILTER Filter, IMG_RECT* rcSrc, img_byte nExtra); img_bool IMG_FUNC IMG_GetPalette( HIMG hImage, img_void* lpDataOut);Just for some notes on the recent changes. I had originally written img_lib to be a COM library for loading images. The idea that it would be a useful library to have across a large number of applications. However I'm not even using the img_lib library for anything other than TexView3 so I doubt it will ever be used in that capacity. I mean, I think C# still has come support, so the library would have been usable there, but quite honestly I'm happy with the library being ANSI C. Which it should now conform to.
The ImgView3 application is MFC so you'll need a licenced version of Visual Studio to compile it, but the image library should work with anything, though I haven't tested it.