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

Method setCurrentViewNo

src/Sato/StringObj.cpp:380–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void StringObj::setCurrentViewNo(const u32 viewNo) {
381
382 ExModel *exModel = mExModel;
383 for (u32 i = 0; i < mStringNodeMgr->mStrNodeList.getNumLinks() - 1; i++, exModel++) {
384 exModel->setCurrentViewNo(viewNo);
385
386 JGeometry::TVec3f pos;
387 mStringNodeMgr->getNodePos(i, &pos);
388
389 Mtx lightMtx;
390 ObjUtility::getCamDependLightMtx(viewNo, pos, lightMtx);
391 mExModel[i].setEffectMtx(lightMtx, 0);
392 }
393}
394
395void StringObj::drawSimpleModel(u32 p1, Mtx mtx1, J3DUClipper *j3duClipper, Mtx mtx2) {
396 SimpleDrawer simpleDrawer;

Callers 1

drawMethod · 0.45

Calls 3

getNodePosMethod · 0.80
getNumLinksMethod · 0.45
setEffectMtxMethod · 0.45

Tested by

no test coverage detected