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

Method reverseCullMode

src/Kaneshige/ExModel.cpp:178–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void ExModel::reverseCullMode(J3DModelData *mdlData) {
179 if (mdlData) {
180 for (u16 i = 0; i < mdlData->getMaterialNum(); i++) {
181 J3DMaterial *node = mdlData->getMaterialNodePointer(i);
182 u8 cullMode = node->getColorBlock()->getCullMode();
183 if (cullMode == 1) {
184 node->getColorBlock()->setCullMode(2);
185 }
186 else if (cullMode == 2) {
187 node->getColorBlock()->setCullMode(1);
188 }
189 }
190 }
191}
192
193void ExModel::setLightMask(J3DModelData *mdlData, GXLightID lightId) {
194 if (mdlData) {

Callers

nothing calls this directly

Calls 4

setCullModeMethod · 0.80
getMaterialNumMethod · 0.45
getColorBlockMethod · 0.45

Tested by

no test coverage detected