Here is a dual patch.
pandora.zip with new exported functions
C_IMPORT long ZI_IsFileImage(IN WCHAR* zFileName);
C_IMPORT long ZI_LoadTGA(IN WCHAR* ImgName, OUT LONG_PTR* img);
C_IMPORT long ZI_LoadDDS(IN WCHAR* ImgName, OUT LONG_PTR* img, OUT LONG* nSwapColors);
Tor.zip (all DDS/TGA code removed)
Tor.cpp, Main.cpp, mobj.h, globals.h, GDImage.h, Tools.h
The 2D to 3D texCoord problem is still not solved, search in Tor.cpp for
// SetTexCoordinateSolving TexCoordinate is the priority, i have to search on Google for a source of inspiration on how to convert efficiently 2D coordinates to 3D UV's (except if you remember what you did in your old FSBL code).
(I think the zoom control should not rely on mouse hover on the hot spot to select it automatically. Selection should instead be done manually in response to an LMB down on the hot spot of interest only.)
This is the purpose of
ptInCircle to create a tolerance when selecting a hot spot with the mouse rather than mouse hover.