diff options
| author | robojumper <robojumper@gmail.com> | 2026-01-18 12:27:37 +0100 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2026-01-18 12:27:37 +0100 |
| commit | 679541bee2a8053a1a1a8e1493886512d5bda5f9 (patch) | |
| tree | fd74077c99baf915e78ab0f595c5929d70325b83 /src/egg/gfx/eggDrawPathDOF.cpp | |
| parent | df5bd1a7b50bf21f2ea9bd250a4f64053c0ac431 (diff) | |
More symbols from NSMBW
Diffstat (limited to 'src/egg/gfx/eggDrawPathDOF.cpp')
| -rw-r--r-- | src/egg/gfx/eggDrawPathDOF.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/egg/gfx/eggDrawPathDOF.cpp b/src/egg/gfx/eggDrawPathDOF.cpp index 5b977e99..d7d5767f 100644 --- a/src/egg/gfx/eggDrawPathDOF.cpp +++ b/src/egg/gfx/eggDrawPathDOF.cpp @@ -61,7 +61,7 @@ DrawPathDOF::~DrawPathDOF() { mpMask = nullptr; } -void DrawPathDOF::execute() { +void DrawPathDOF::updateShimmer() { field_0x5C += field_0x6C * field_0x7C; field_0x60 += field_0x70 * field_0x7C; @@ -115,8 +115,8 @@ void DrawPathDOF::internalResetForDraw() { void DrawPathDOF::internalDraw(u16 idx) { if (idx == 0) { if (StateEfb::CheckFlag0x2() == 0) { - StateEfb::fn_804B4270( - static_cast<StateEfb::BufferType>((field_0x1C >> 2) & 1), reinterpret_cast<u32>(this) + StateEfb::pushWorkBuffer( + static_cast<StateEfb::WorkBuffer>((field_0x1C >> 2) & 1), reinterpret_cast<u32>(this) ); } StateGX::invalidateTexAllGX(); @@ -130,8 +130,8 @@ void DrawPathDOF::internalDraw(u16 idx) { switch (idx) { case 1: - StateEfb::popWorkBuffer(StateEfb::BUFFER_0, reinterpret_cast<u32>(this)); - StateEfb::releaseEfb(StateEfb::BUFFER_3, reinterpret_cast<u32>(this)); + StateEfb::popWorkBuffer(false, reinterpret_cast<u32>(this)); + StateEfb::releaseEfb(StateEfb::BUFFER_TYPE_3, reinterpret_cast<u32>(this)); break; case 2: if (mpTextureBuffer != nullptr) { @@ -148,13 +148,13 @@ void DrawPathDOF::internalDrawLite(u16 idx) { const Screen::DataEfb &efb = screen.GetDataEfb(); switch (idx) { case 0: { - TextureBuffer *capturedBuf = StateEfb::captureEfb(StateEfb::BUFFER_3, false, reinterpret_cast<u32>(this)); + TextureBuffer *capturedBuf = StateEfb::captureEfb(StateEfb::BUFFER_TYPE_3, false, reinterpret_cast<u32>(this)); StateGX::setPixelFormatGX(GX_PF_RGB8_Z24, GX_ZC_LINEAR); StateGX::ScopedColor colorGuard(true); StateGX::ScopedAlpha alphaGuard(false); StateGX::ScopedDither ditherGuard(false); PostEffectBase::setProjection(screen); - f32 *floats = StateEfb::fn_804B4550(); + f32 *floats = StateEfb::shiftWorkSpaceViewportGX(); f32 scale = (field_0x1C & 4) != 0 ? 0.25f : 0.5f; f32 width1 = screen.GetWidth() * scale; f32 height1 = screen.GetHeight() * scale; |
