used "numberOf" instead of "valueOf" in String class.
This commit is contained in:
parent
bcf232e344
commit
19f2a18e9c
@ -78,7 +78,7 @@ bool ConvertImage(const OSString &filename,const ImageConvertConfig *cfg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO(OS_TEXT("pixel total length: ")+OSString::valueOf(total)+OS_TEXT(" bytes."));
|
LOG_INFO(OS_TEXT("pixel total length: ")+OSString::numberOf(total)+OS_TEXT(" bytes."));
|
||||||
|
|
||||||
tex_file_creater->Close();
|
tex_file_creater->Close();
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ bool ConvertCubemap(const OSString &filename,const OSStringList &file_list,const
|
|||||||
|
|
||||||
tex_file_creater->Close();
|
tex_file_creater->Close();
|
||||||
|
|
||||||
LOG_INFO(OS_TEXT("pixel total length: ")+OSString::valueOf(total)+OS_TEXT(" bytes."));
|
LOG_INFO(OS_TEXT("pixel total length: ")+OSString::numberOf(total)+OS_TEXT(" bytes."));
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ bool ILImage::LoadFile(const OSString &filename)
|
|||||||
|
|
||||||
const os_char *err_text=GetDevILErrorString(il_err_code);
|
const os_char *err_text=GetDevILErrorString(il_err_code);
|
||||||
|
|
||||||
LOG_ERROR(OS_TEXT("can't Load image file <")+filename+OS_TEXT("> Error: ")+(err_text?err_text:OSString::valueOf(il_err_code)));
|
LOG_ERROR(OS_TEXT("can't Load image file <")+filename+OS_TEXT("> Error: ")+(err_text?err_text:OSString::numberOf(il_err_code)));
|
||||||
|
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
@ -265,10 +265,10 @@ bool ILImage::LoadFile(const OSString &filename)
|
|||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
||||||
LOG_INFO(OS_TEXT("\t width: ")+OSString::valueOf(il_width));
|
LOG_INFO(OS_TEXT("\t width: ")+OSString::numberOf(il_width));
|
||||||
LOG_INFO(OS_TEXT("\theight: ")+OSString::valueOf(il_height));
|
LOG_INFO(OS_TEXT("\theight: ")+OSString::numberOf(il_height));
|
||||||
LOG_INFO(OS_TEXT("\t depth: ")+OSString::valueOf(il_depth));
|
LOG_INFO(OS_TEXT("\t depth: ")+OSString::numberOf(il_depth));
|
||||||
LOG_INFO(OS_TEXT("\t bit: ")+OSString::valueOf(il_bit));
|
LOG_INFO(OS_TEXT("\t bit: ")+OSString::numberOf(il_bit));
|
||||||
LOG_INFO(OS_TEXT("\tformat: ")+GetILFormatName(il_format));
|
LOG_INFO(OS_TEXT("\tformat: ")+GetILFormatName(il_format));
|
||||||
LOG_INFO(OS_TEXT("\t type: ")+GetILTypeName(il_type));
|
LOG_INFO(OS_TEXT("\t type: ")+GetILTypeName(il_type));
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ using namespace hgl::filesystem;
|
|||||||
|
|
||||||
bool ToILType(ILuint &type,const uint8 bits,const VulkanNumberType cdt)
|
bool ToILType(ILuint &type,const uint8 bits,const VulkanNumberType cdt)
|
||||||
{
|
{
|
||||||
constexpr ILuint target_type[3][(uint)VulkanNumberType::END-1]=
|
constexpr ILuint target_type[3][(uint)VulkanNumberType::END_RANGE-1]=
|
||||||
{
|
{
|
||||||
//UINT SINT, UNORM SNORM USCALE,SSCALE, UFLOAT SFLOAT
|
//UINT SINT, UNORM SNORM USCALE,SSCALE, UFLOAT SFLOAT
|
||||||
/* 8 */{IL_UNSIGNED_BYTE, IL_BYTE, IL_UNSIGNED_BYTE, IL_BYTE, 0,0, 0, 0},
|
/* 8 */{IL_UNSIGNED_BYTE, IL_BYTE, IL_UNSIGNED_BYTE, IL_BYTE, 0,0, 0, 0},
|
||||||
@ -57,7 +57,7 @@ bool TextureFileCreater::CreateTexFile(const OSString &old_filename, const VkIma
|
|||||||
if(type<VK_IMAGE_VIEW_TYPE_1D
|
if(type<VK_IMAGE_VIEW_TYPE_1D
|
||||||
||type>VK_IMAGE_VIEW_TYPE_CUBE_ARRAY)
|
||type>VK_IMAGE_VIEW_TYPE_CUBE_ARRAY)
|
||||||
{
|
{
|
||||||
LOG_ERROR(OS_TEXT("TextureFileCreater::WriteFileHeader(")+old_filename+OS_TEXT(") texture type error that it's ")+OSString::valueOf(int(type)));
|
LOG_ERROR(OS_TEXT("TextureFileCreater::WriteFileHeader(")+old_filename+OS_TEXT(") texture type error that it's ")+OSString::numberOf(int(type)));
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
main.cpp
4
main.cpp
@ -99,9 +99,9 @@ int os_main(int argc,os_char **argv)
|
|||||||
|
|
||||||
const double time_gap=(end_time-start_time)/1000000;
|
const double time_gap=(end_time-start_time)/1000000;
|
||||||
|
|
||||||
const OSString time_gap_str=OSString::valueOf(time_gap);
|
const OSString time_gap_str=OSString::numberOf(time_gap);
|
||||||
|
|
||||||
LOG_INFO(OS_TEXT("Total converted ")+OSString::valueOf(eci.GetConvertCount())
|
LOG_INFO(OS_TEXT("Total converted ")+OSString::numberOf(eci.GetConvertCount())
|
||||||
+OS_TEXT(" textures for ")+time_gap_str.c_str()+OS_TEXT(" seconds."));
|
+OS_TEXT(" textures for ")+time_gap_str.c_str()+OS_TEXT(" seconds."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user