-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #362 from Kuruyia/feat/document-bdhc-loading
Document BDHC file loading
- Loading branch information
Showing
18 changed files
with
397 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef POKEPLATINUM_CONSTANTS_BDHC_H | ||
#define POKEPLATINUM_CONSTANTS_BDHC_H | ||
|
||
#define BDHC_BUFFER_SIZE 0x9000 | ||
|
||
#define BDHC_MAGIC_LENGTH 4 | ||
|
||
#endif // POKEPLATINUM_CONSTANTS_BDHC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef POKEPLATINUM_OV5_BDHC_H | ||
#define POKEPLATINUM_OV5_BDHC_H | ||
|
||
#include <nitro/fx/fx.h> | ||
|
||
typedef struct BDHCPlate { | ||
u16 firstPointIndex; | ||
u16 secondPointIndex; | ||
u16 normalIndex; | ||
u16 heightIndex; | ||
} BDHCPlate; | ||
|
||
typedef struct BDHCPoint { | ||
fx32 x; | ||
fx32 y; | ||
} BDHCPoint; | ||
|
||
typedef struct BDHCStrip { | ||
fx32 lowerBound; | ||
u16 accessListElementCount; | ||
u16 accessListStartIndex; | ||
} BDHCStrip; | ||
|
||
typedef struct BDHC { | ||
BDHCPlate *plates; | ||
fx32 *heights; | ||
BDHCStrip *strips; | ||
u16 *accessList; | ||
BDHCPoint *points; | ||
VecFx32 *slopes; | ||
BOOL loaded; | ||
int stripsSize; | ||
} BDHC; | ||
|
||
#endif // POKEPLATINUM_OV5_BDHC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef POKEPLATINUM_OV5_BDHC_LOADER_H | ||
#define POKEPLATINUM_OV5_BDHC_LOADER_H | ||
|
||
#include "overlay005/bdhc.h" | ||
|
||
#include "narc.h" | ||
#include "sys_task_manager.h" | ||
|
||
void BDHCLoader_Load(NARC *narc, const int bdhcSize, BDHC *bdhc, u8 *buffer); | ||
SysTask *BDHCLoader_StartTask(NARC *landDataNARC, const int param1, BDHC *bdhc, int *param3, u8 **buffer, int *param5); | ||
void BDHCLoader_ForceExitTask(SysTask *sysTask); | ||
void BDHCLoader_MarkBDHCNotLoaded(BDHC *bdhc); | ||
|
||
BDHC *BDHC_New(void); | ||
void BDHC_Free(BDHC *bdhc); | ||
void BDHC_Reset(BDHC *bdhc); | ||
|
||
#endif // POKEPLATINUM_OV5_BDHC_LOADER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#ifndef POKEPLATINUM_OV5_021EEC68_H | ||
#define POKEPLATINUM_OV5_021EEC68_H | ||
|
||
#include "overlay005/struct_ov5_021EF13C_decl.h" | ||
#include "overlay005/bdhc.h" | ||
|
||
BOOL ov5_021EED9C(const fx32 param0, const fx32 param1, const fx32 param2, const UnkStruct_ov5_021EF13C *param3, fx32 *param4); | ||
BOOL ov5_021EED9C(const fx32 param0, const fx32 param1, const fx32 param2, const BDHC *param3, fx32 *param4); | ||
|
||
#endif // POKEPLATINUM_OV5_021EEC68_H |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.