Closed NounKim closed 2 years ago
1- It converts unreal text format to standard c++ text format
2- In the docs of official assimp it says if texture height is zero then pcData points to raw binary data inside memory. the code is from one of their sample projects. we can use reinterpret_cast to convert this into an array of bytes (char or uint8 ) which then we can pass to Tarray input. reinterpret_cast has no runtime cost . also please don't make separate issues for the same topic
Q1: AIScene 147: auto EmbedTexture=scene->GetEmbeddedTexture(TCHAR_TO_UTF8(*FilePath));
What is TCHAR_TO_UTF8? Why Use it?
Q2: AIScene 209: auto result =reinterpret_cast<const unsigned char*>(EmbedTexture->pcData)
I knew, pcData Is Structure. How can you cast it to const unsigned char*?