123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #include "CFTTTextureManager.h"
- #include "CFTTGraphicsDevice.h"
- #include "CFTTTexLoadOptions.h"
- #include "memctrl.h"
- CFTTTextureManager *FTT_pTex = nullptr;
- int CFTTTextureManager::s_iDummyTextureRefCount;
- CFTTTexture *CFTTTextureManager::s_pDummyTextures[5];
- //-------------------------------------------------------------------------------------------------
- //00223464 //^_-
- CFTTTextureManager::CFTTTextureManager(int dCount) : Mutex_10(nullptr, EFTTProtocol_0) {
- LOGI("CFTTTextureManager::CFTTTextureManager Entry %d", dCount);
- }
- //-------------------------------------------------------------------------------------------------
- //002235EC
- CFTTTextureManager::~CFTTTextureManager() {
- }
- //-------------------------------------------------------------------------------------------------
- //00223688 //^_^
- void CFTTTextureManager::IncreaseReferenceCount(int dIndex) {
- LOGI("CFTTTextureManager::IncreaseReferenceCount End");
- }
- //-------------------------------------------------------------------------------------------------
- //002236B0
- void CFTTTextureManager::ReleaseAllTextures() {
- Mutex_10.Lock();
- Mutex_10.Unlock();
- }
- //-------------------------------------------------------------------------------------------------
- //00223704
- bool CFTTTextureManager::ReleaseTexture(CFTTTexture *pTexture) {
- return false;
- }
- //-------------------------------------------------------------------------------------------------
- //00223752 //^_^
- void CFTTTextureManager::ReleaseTexture(int dIndex) {
- LOGE("%x",this);
- LOGE("%x",dIndex);
- }
- //-------------------------------------------------------------------------------------------------
- //0022378A
- void CFTTTextureManager::ReleaseAllOtherTextures(CFTTTexture **ppTexture, int a2) {
- }
- //-------------------------------------------------------------------------------------------------
- //002237F0 //^_^
- int CFTTTextureManager::FindTexture(uint dHash, EFTTTextureType eType) const {
- return -1;
- }
- //-------------------------------------------------------------------------------------------------
- //00223822
- int CFTTTextureManager::GetTextureID(char const *pName) {
- return -1;
- }
- //-------------------------------------------------------------------------------------------------
- //00223852 //^_^
- int CFTTTextureManager::FindFreeTexIndex() {
- return 0;
- }
- //-------------------------------------------------------------------------------------------------
- //00223882 //^_- 经过单元测试,功能正常
- int CFTTTextureManager::LoadTexture(char const *pName,
- CFTTTexLoadOptions const &pTexLoadOptions) {
- LOGI("CFTTTextureManager::LoadTexture entry%x%x",pName,pTexLoadOptions);
- int dret = rand();
- return dret;
- }
- //-------------------------------------------------------------------------------------------------
- //002239A4 //^_^
- CFTTTexture *CFTTTextureManager::CreateTexture(char const *pName,
- CFTTTexLoadOptions const &pTexLoadOptions) {
- return CFTTTexture::LoadName(pName, pTexLoadOptions, true);
- }
- //-------------------------------------------------------------------------------------------------
- //002239B0
- int CFTTTextureManager::AddTexture(CFTTTexture *pTexture,
- EFTTTextureType eType,
- char const *pName,
- int *pDat,
- bool b) {
- return 0;
- }
- //-------------------------------------------------------------------------------------------------
- //00223A2C //^_^
- CFTTTexture *CFTTTextureManager::GetDummyTexture(EFTTDummyTexture eDummyTexture) {
- return s_pDummyTextures[eDummyTexture];
- }
- //-------------------------------------------------------------------------------------------------
- //00223A3C
- int CFTTTextureManager::GetTotalUseCount() {
- int dret = 0;
- return dret;
- }
- //-------------------------------------------------------------------------------------------------
- //00223A5E
- char *CFTTTextureManager::GetTextureName(int dIndex) {
- char *pRet = nullptr;
- return pRet;
- }
- //-------------------------------------------------------------------------------------------------
|