mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-22 23:20:49 -05:00
This documents the `ov5_021E779C.c` file, which is in charge of loading map data from the `land_data.narc` archive, dynamically load and unload maps as the player moves, and render the map base models and their props. Also, for the viewer's pleasure, it includes a ton of Distortion World-specific functions. This also documents the `ov5_021EEAC8.c` file, which is in charge of managing buffer allocation for the map base model and BDHC data. Signed-off-by: Kuruyia <github@kuruyia.net>
23 lines
936 B
C
23 lines
936 B
C
#ifndef POKEPLATINUM_OV5_LOADED_MAP_BUFFERS_H
|
|
#define POKEPLATINUM_OV5_LOADED_MAP_BUFFERS_H
|
|
|
|
#include <nitro/types.h>
|
|
|
|
#define LOADED_MAP_BUFFERS_FILE_COUNT 4
|
|
|
|
typedef struct LoadedMapBuffers {
|
|
u16 mapModelAllocType;
|
|
u16 bdhcAllocType;
|
|
void *mapModelFiles[LOADED_MAP_BUFFERS_FILE_COUNT];
|
|
void *bdhcFiles[LOADED_MAP_BUFFERS_FILE_COUNT];
|
|
} LoadedMapBuffers;
|
|
|
|
LoadedMapBuffers *LoadedMapBuffers_New(const BOOL allocBDHCFiles);
|
|
void LoadedMapBuffers_Free(LoadedMapBuffers *buffers);
|
|
void LoadedMapBuffers_GetMapModelFileBufPtr(const u8 index, const LoadedMapBuffers *buffers, void **mapModelFile);
|
|
void LoadedMapBuffers_GetBDHCFileBufPtr(const u8 index, const LoadedMapBuffers *buffers, void **bdhcFile);
|
|
LoadedMapBuffers *LoadedMapBuffers_NewWithHeapMapModelFiles(const BOOL allocBDHCFiles);
|
|
void LoadedMapBuffers_SwapMapModelData(LoadedMapBuffers *a, LoadedMapBuffers *b);
|
|
|
|
#endif // POKEPLATINUM_OV5_LOADED_MAP_BUFFERS_H
|