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

Method loadTexture

src/Shiraiwa/WipeBase.cpp:57–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void TWipeBase::loadTexture(JKRHeap *heap)
58{
59 for (int i = 0; i < 3; i++)
60 {
61 JKRArchive *archive = GETJ2DManager()->getArchive();
62 ResTIMG *img = (ResTIMG *)archive->getResource(scTextureName[i]);
63
64#line 100
65 JUT_ASSERT_F(img, "texture %s can\'t load.", scTextureName[i]);
66 if (i == 2)
67 {
68 img->mWrapS = 0;
69 img->mWrapT = 2;
70 }
71
72 sTexture[i] = new (heap, 0) JUTTexture(img);
73 }
74}
75
76JUTTexture *TWipeBase::getTexture(u32 id)
77{

Callers

nothing calls this directly

Calls 3

GETJ2DManagerFunction · 0.85
getArchiveMethod · 0.45
getResourceMethod · 0.45

Tested by

no test coverage detected