You've already forked pico-launcher
mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-01-09 16:28:48 -08:00
16 lines
367 B
C++
16 lines
367 B
C++
#include "common.h"
|
|
#include <nds/arm9/cache.h>
|
|
#include "OamManager.h"
|
|
|
|
void OamManager::Apply(vu16* dst)
|
|
{
|
|
DC_FlushRange(&_oamTable, sizeof(gfx_oam_table_t));
|
|
dma_ntrCopy32(3, &_oamTable, dst, sizeof(gfx_oam_table_t));
|
|
}
|
|
|
|
void OamManager::Clear()
|
|
{
|
|
memset(&_oamTable, 0x2, sizeof(gfx_oam_table_t));
|
|
_oamPtr = &_oamTable.objs[128];
|
|
_mtxIdx = 0;
|
|
} |