#include "CFTTTexture.h" #include "CFTTFileSystem.h" #include "FTT2D.h" #include "memctrl.h" TFTTTexture_FileHandler *CFTTTexture::ms_pFileHandlers; int dword_30B230[20] = {16, 16, 16, 32, 4, 8, 8, 24, 8, 16, 2, 2, 4, 4, 4, 32, 64, 128, 0, 0}; //------------------------------------------------------------------------------------------------- //00221DE8 //^_^ 经过单元测试,功能正常 int GetBPP(EFTTTexFormat eFormat) { int dret; return dret; } //------------------------------------------------------------------------------------------------- //00221FE4 ^_- 经过单元测试,功能正常 int GetFullMipChainCount(int dWidth, int dHeight, EFTTTexFormat eFormat) { int dr0 = 1; return dr0; } //------------------------------------------------------------------------------------------------- //00222034 //^_^ CFTTTexture::CFTTTexture() { } //------------------------------------------------------------------------------------------------- //00222070 0022208C //^_^ CFTTTexture::~CFTTTexture() { FTT2D_OnTextureDeletion(this); } //------------------------------------------------------------------------------------------------- //00222090 static //^_^ void CFTTTexture::AddFileHandler(TFTTTexture_FileHandler *pFileHandler) { // 005CB218 00222092 } //------------------------------------------------------------------------------------------------- //002220CC static //^_- TFTTTexture_FileHandler *CFTTTexture::DetermineBestTextureFile(char const *pDat, char *pOut, int dOutLen) { LOGI("CFTTTexture::DetermineBestTextureFil"); return nullptr; } //------------------------------------------------------------------------------------------------- // static //00222128 //^_- 经过单元测试,功能正常 CFTTFile *CFTTTexture::OpenBestTextureFile(char const *pFileName, TFTTTexture_FileHandler **ppFileHandler) { LOGI("CFTTTexture::OpenBestTextureFile entry %s", pFileName); LOGI("CFTTTexture::OpenBestTextureFile end"); return nullptr; } //------------------------------------------------------------------------------------------------- //002221EC static bool CFTTTexture::BufferCheckFormat(void const *pDat, int a2, TFTTTexture_FileHandler const **ppFileHandler) { bool bret = false; return bret; } //------------------------------------------------------------------------------------------------- //00222224 static bool CFTTTexture::FileIsValid(char const *pFileName) { bool bret = false; // loc_222272 return bret; } //------------------------------------------------------------------------------------------------- //00222278 static bool CFTTTexture::FileExists(char const *pFileName, bool b) { bool bret = false; // loc_2222AC return bret; } //------------------------------------------------------------------------------------------------- //002222D4 //^_^ CFTTTexture *CFTTTexture::LoadBuffer(void const *pDat, int dLen, CFTTTexLoadOptions const &pTexOpt, TFTTTexture_FileHandler const *pFileHandler) { CFTTTexture *pret = nullptr; return pret; } //------------------------------------------------------------------------------------------------- //00222324 //^_^ CFTTTexture *CFTTTexture::LoadName(char const *pName0, CFTTTexLoadOptions const &pTexLoadOpt1, bool b2) { CFTTTexture *r7_pTexture = (CFTTTexture*)rand(); LOGI("CFTTTexture::LoadName End%x%x%x",pName0,pTexLoadOpt1.field_15,b2); return r7_pTexture; } //------------------------------------------------------------------------------------------------- //002223F8 bool CFTTTexture::SaveName(char const *, EFTTTextureSaveQuality, EFTTRendererType) { return false; } //------------------------------------------------------------------------------------------------- //00222474 bool CFTTTexture::CanSaveName(char const *, int *, int *, char *, int) { return false; } //------------------------------------------------------------------------------------------------- //00222528 void CFTTTexture::RenderSaveCube(char const *, bool, CFTTVector32x4) { } //------------------------------------------------------------------------------------------------- //00222860 int CFTTTexture::SplitCube() { return 0; } //------------------------------------------------------------------------------------------------- //002228DC void CFTTTexture::SaveCube(char const *) { } //------------------------------------------------------------------------------------------------- //0022294C //^_^ void CFTTTexture::ResetAllFlags(int a2) { if ((flag_24 ^ a2) << 30) a2 |= 0x20u; flag_24 = a2; } //------------------------------------------------------------------------------------------------- //0022295C //^_^ void CFTTTexture::ApplyTexLoadOptions(CFTTTexLoadOptions const &pTexOpt) { } //------------------------------------------------------------------------------------------------- //00222994 //^_^ void CFTTTexture::AddFlags(int a2) { } //------------------------------------------------------------------------------------------------- //002229AA //^_^ void CFTTTexture::RemoveAlpha() { } //-------------------------------------------------------------------------------------------------