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

Method isUsed

libs/JSystem/J2DGraph/J2DPictureEx.cpp:1112–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112bool J2DPictureEx::isUsed(const ResTIMG* resource)
1113{
1114 if (mMaterial != nullptr && mMaterial->mTevBlock != nullptr) {
1115 for (u32 i = 0; i < 8; i++) {
1116 JUTTexture* texture = mMaterial->mTevBlock->getTexture(i);
1117 if (texture != nullptr && texture->mTexInfo == resource) {
1118 return true;
1119 }
1120 }
1121 }
1122 return J2DPane::isUsed(resource);
1123}
1124
1125void J2DPictureEx::setAnimation(J2DAnmColor* animation)
1126{

Callers

nothing calls this directly

Calls 1

getTextureMethod · 0.45

Tested by

no test coverage detected