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

Method animationPane

libs/JSystem/J2DGraph/J2DPictureEx.cpp:1185–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185const J2DAnmTransform* J2DPictureEx::animationPane(const J2DAnmTransform* animation)
1186{
1187 if (mAnmVisibility && mMaterialNum != 0xFFFF) {
1188 u8 vis;
1189 mAnmVisibility->getVisibility(mMaterialNum, &vis);
1190 if (vis) {
1191 show();
1192 } else {
1193 hide();
1194 }
1195 }
1196
1197 if (mAnmVtxColor) {
1198 u32 num0 = mAnmVtxColor->getAnmTableNum(0);
1199 for (u8 i = 0; i < 4; i++) {
1200 if (_1A4 & (1 << i)) {
1201 // inline?
1202 for (u16 j = 0; j < num0; j++) {
1203 J3DAnmVtxColorIndexData* data = mAnmVtxColor->getAnmVtxColorIndexData(0, j);
1204 u16 *colorPtr = &mAnmVtxColor->getVtxColorIndexPointer(0)[(u32)data->mData];
1205 for (u16 k = 0; k < data->mNum; k++) {
1206 if (_170[i] == colorPtr[k]) {
1207 mAnmVtxColor->getColor(0, j, &mCornerColors[i]);
1208 goto next_color;
1209 }
1210 }
1211 }
1212 }
1213 next_color:;
1214 }
1215 }
1216
1217 J2DPane::animationPane(animation);
1218}
1219
1220u8 J2DPictureEx::getUsableTlut(u8 id)
1221{

Callers

nothing calls this directly

Calls 5

getVisibilityMethod · 0.80
getAnmTableNumMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected