mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
Library/Layout: Implement LayoutUtil (#833)
This commit is contained in:
parent
9c0a357f75
commit
3d057a9a15
|
|
@ -243898,7 +243898,7 @@ Library/Layout/LayoutUtil.o:
|
|||
- offset: 0x8bc1b0
|
||||
size: 108
|
||||
label: _ZN2al18initLayoutInitInfoEPNS_14LayoutInitInfoEPKNS_9LayoutKitEPNS_14SceneObjHolderEPKNS_13AudioDirectorEPKNS_12LayoutSystemEPKNS_13MessageSystemEPKNS_13GamePadSystemE
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x8bc21c
|
||||
size: 20
|
||||
label: _ZN2al15setRenderBufferEPNS_9LayoutKitEPKN3agl12RenderBufferE
|
||||
|
|
@ -243910,19 +243910,19 @@ Library/Layout/LayoutUtil.o:
|
|||
- offset: 0x8bc234
|
||||
size: 8
|
||||
label: _ZN2al17executeUpdateListEPNS_9LayoutKitEPKcS3_
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x8bc23c
|
||||
size: 8
|
||||
label: _ZN2al19executeUpdateEffectEPNS_9LayoutKitE
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x8bc244
|
||||
size: 8
|
||||
label: _ZN2al11executeDrawEPKNS_9LayoutKitEPKc
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x8bc24c
|
||||
size: 12
|
||||
label: _ZN2al17executeDrawEffectEPKNS_9LayoutKitE
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
Library/Light/BloomDirector.o:
|
||||
'.text':
|
||||
- offset: 0x8bc258
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ public:
|
|||
|
||||
nn::ui2d::DrawInfo* getDrawInfo() const { return mDrawInfo; }
|
||||
|
||||
agl::DrawContext* getDrawContext() const { return mDrawContext; }
|
||||
|
||||
private:
|
||||
FontHolder* mFontHolder;
|
||||
ExecuteDirector* mExecuteDirector;
|
||||
|
|
|
|||
35
lib/al/Library/Layout/LayoutUtil.cpp
Normal file
35
lib/al/Library/Layout/LayoutUtil.cpp
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#include "Library/Layout/LayoutUtil.h"
|
||||
|
||||
#include "Library/Effect/EffectKeeper.h"
|
||||
#include "Library/Effect/EffectSystem.h"
|
||||
#include "Library/Execute/ExecuteDirector.h"
|
||||
#include "Library/Layout/LayoutInitInfo.h"
|
||||
#include "Library/Layout/LayoutSystem.h"
|
||||
|
||||
namespace al {
|
||||
void initLayoutInitInfo(LayoutInitInfo* info, const LayoutKit* kit, SceneObjHolder* sceneObjHolder,
|
||||
const AudioDirector* audioDirector, const LayoutSystem* layoutSystem,
|
||||
const MessageSystem* messageSystem, const GamePadSystem* gamePadSystem) {
|
||||
info->init(kit->getExecuteDirector(), kit->getEffectSystem()->getEffectSystemInfo(),
|
||||
sceneObjHolder, audioDirector, nullptr, layoutSystem, messageSystem, gamePadSystem,
|
||||
nullptr);
|
||||
info->setDrawContext(kit->getDrawContext());
|
||||
info->setDrawInfo(kit->getDrawInfo());
|
||||
}
|
||||
|
||||
void executeUpdateList(LayoutKit* kit, const char* tableName, const char* listName) {
|
||||
kit->getExecuteDirector()->executeList(tableName, listName);
|
||||
}
|
||||
|
||||
void executeUpdateEffect(LayoutKit* kit) {
|
||||
alEffectSystemFunction::updateEffect2D(kit->getEffectSystem());
|
||||
}
|
||||
|
||||
void executeDraw(const LayoutKit* kit, const char* tableName) {
|
||||
kit->getExecuteDirector()->draw(tableName);
|
||||
}
|
||||
|
||||
void executeDrawEffect(const LayoutKit* kit) {
|
||||
alEffectSystemFunction::drawEffect2D(kit->getEffectSystem(), nullptr);
|
||||
}
|
||||
} // namespace al
|
||||
Loading…
Reference in a new issue