MCPcopy Create free account
hub / github.com/doldecomp/mkdd / isUsed

Method isUsed

libs/JSystem/J2DGraph/J2DWindowEx.cpp:730–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730bool J2DWindowEx::isUsed(const ResTIMG* resource)
731{
732 for (u8 i = 0; i < 4; i++) {
733 if (mFrameMaterials[i] != nullptr && mFrameMaterials[i]->mTevBlock != nullptr) {
734 for (u32 j = 0; j < 8; j++) {
735 JUTTexture* texture = mFrameMaterials[i]->mTevBlock->getTexture(j);
736 if (texture != nullptr && texture->mTexInfo == resource) {
737 return true;
738 }
739 }
740 }
741 }
742 if (mContentsMaterial != nullptr && mContentsMaterial->mTevBlock != nullptr) {
743 for (u32 j = 0; j < 8; j++) {
744 JUTTexture* texture = mContentsMaterial->mTevBlock->getTexture(j);
745 if (texture != nullptr && texture->mTexInfo == resource) {
746 return true;
747 }
748 }
749 }
750 return J2DPane::isUsed(resource);
751}
752
753void J2DWindowEx::setAnimation(J2DAnmColor* animation)
754{

Callers

nothing calls this directly

Calls 1

getTextureMethod · 0.45

Tested by

no test coverage detected