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

Method drawPreIn

src/Shiraiwa/WipeBase.cpp:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void TWipeBase::drawPreIn(int camNo, JUtility::TColor color)
148{
149 JGeometry::TBox2f viewport;
150 SiUtil::getViewport(&viewport, camNo);
151
152 if (viewport.getWidth() <= 0.0f || viewport.getHeight() <= 0.0f)
153 return;
154
155 mGraph[camNo]->place(viewport);
156
157 mGraph[camNo]->setOrtho(viewport.i.x, viewport.i.y, viewport.getWidth(), viewport.getHeight(), -1.0f, 1.0f);
158 mGraph[camNo]->setPort();
159 J2DFillBox(viewport, color);
160}

Callers

nothing calls this directly

Calls 6

J2DFillBoxFunction · 0.85
getWidthMethod · 0.45
getHeightMethod · 0.45
placeMethod · 0.45
setOrthoMethod · 0.45
setPortMethod · 0.45

Tested by

no test coverage detected