#include #include"ILImage.h" #include #include using namespace hgl; using namespace hgl::filesystem; int convert(const OSString &filename) { ILImage hdr; if(!hdr.LoadFile(filename)) { os_err<<"Can't load file: "<(filename,OS_TEXT("png")); if(!SaveImageToFile(png_filename,width,height,channels,IL_UNSIGNED_SHORT,dest)) { delete[] dest; os_err<