diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2023-03-07 21:06:49 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-08 00:06:49 -0500 |
| commit | 184f5858ff6bf0c3c7bd399efe592e5af497e6d9 (patch) | |
| tree | ef64b3aa3dac48a7103c1a610489dd67b6d967be /include/z64debug_display.h | |
| parent | c917880261a9144ae4563ef175a536d38a2008d9 (diff) | |
Debug mode (#1185)
* OK
* Docs
* PR
* Format
* Update include/z64debug_display.h
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* Update include/z64debug_display.h
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
---------
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'include/z64debug_display.h')
| -rw-r--r-- | include/z64debug_display.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/z64debug_display.h b/include/z64debug_display.h new file mode 100644 index 000000000..885a3839c --- /dev/null +++ b/include/z64debug_display.h @@ -0,0 +1,25 @@ +#ifndef Z64DEBUG_DISPLAY_H +#define Z64DEBUG_DISPLAY_H + +#include "color.h" +#include "ultra64.h" +#include "z64math.h" + +struct GraphicsContext; +struct PlayState; + +typedef struct DebugDispObject { + /* 0x00 */ Vec3f pos; + /* 0x0C */ Vec3s rot; + /* 0x14 */ Vec3f scale; + /* 0x20 */ Color_RGBA8 color; + /* 0x24 */ s16 type; + /* 0x28 */ struct DebugDispObject* next; + /* 0x2C */ s32 pad; // Padding is not in the OoT version +} DebugDispObject; // size = 0x30 + +DebugDispObject* DebugDisplay_Init(void); +void DebugDisplay_DrawObjects(struct PlayState* play); +DebugDispObject* DebugDisplay_AddObject(f32 posX, f32 posY, f32 posZ, s16 rotX, s16 rotY, s16 rotZ, f32 scaleX, f32 scaleY, f32 scaleZ, u8 red, u8 green, u8 blue, u8 alpha, s16 type, struct GraphicsContext* gfxCtx); + +#endif |
