mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 11:11:22 +00:00
CGraphicsPalette: Use GXDestroyTlutObj
This commit is contained in:
parent
cd16431d36
commit
d1bcc1d8b5
@ -19,6 +19,12 @@ CGraphicsPalette::CGraphicsPalette(CInputStream& in) : x0_fmt(EPaletteFormat(in.
|
|||||||
// DCFlushRange(xc_entries.get(), x8_entryCount * 2);
|
// DCFlushRange(xc_entries.get(), x8_entryCount * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGraphicsPalette::~CGraphicsPalette() {
|
||||||
|
#ifdef AURORA
|
||||||
|
GXDestroyTlutObj(&x10_tlutObj);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void CGraphicsPalette::Load() {
|
void CGraphicsPalette::Load() {
|
||||||
GXLoadTlut(&x10_tlutObj, GX_TLUT0);
|
GXLoadTlut(&x10_tlutObj, GX_TLUT0);
|
||||||
x4_frameLoaded = sCurrentFrameCount;
|
x4_frameLoaded = sCurrentFrameCount;
|
||||||
|
@ -27,6 +27,7 @@ class CGraphicsPalette {
|
|||||||
public:
|
public:
|
||||||
explicit CGraphicsPalette(EPaletteFormat fmt, int count);
|
explicit CGraphicsPalette(EPaletteFormat fmt, int count);
|
||||||
explicit CGraphicsPalette(CInputStream& in);
|
explicit CGraphicsPalette(CInputStream& in);
|
||||||
|
~CGraphicsPalette();
|
||||||
|
|
||||||
u16* Lock() {
|
u16* Lock() {
|
||||||
x1c_locked = true;
|
x1c_locked = true;
|
||||||
|
2
extern/aurora
vendored
2
extern/aurora
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 5f06d873bc25d139e5c1fe457a3e4706188c64ee
|
Subproject commit 8cbebc12b2b2d0598a130aa704855ceb89507068
|
Loading…
x
Reference in New Issue
Block a user