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

Method draw

libs/JSystem/J2DGraph/J2DWindowEx.cpp:436–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436void J2DWindowEx::draw(const JGeometry::TBox2f& p1)
437{
438 bool isMissingTexture = false;
439 JUTTexture* local_68[4];
440 for (int i = 0; i < 4; i++) {
441 if (mFrameMaterials[i] == nullptr) {
442 return;
443 }
444 if (mFrameMaterials[i]->getTevBlock() == nullptr) {
445 return;
446 }
447 local_68[i] = mFrameMaterials[i]->getTevBlock()->getTexture(0);
448 if (local_68[i] == nullptr) {
449 isMissingTexture = true;
450 }
451 }
452 JGeometry::TBox2<f32> aTStack_78;
453 if (!isMissingTexture) {
454 aTStack_78.set(local_68[0]->getWidth(), local_68[0]->getHeight(), p1.getWidth() - local_68[1]->getWidth(),
455 p1.getHeight() - local_68[2]->getHeight());
456 } else {
457 aTStack_78.set(0.0f, 0.0f, p1.getWidth(), p1.getHeight());
458 }
459 draw(p1, aTStack_78);
460}
461
462void J2DWindowEx::draw(const JGeometry::TBox2<f32>& p1, const JGeometry::TBox2<f32>& p2)
463{

Callers

nothing calls this directly

Calls 6

drawFunction · 0.50
getTevBlockMethod · 0.45
getTextureMethod · 0.45
setMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected