Files
KataMario/src/game/debug_box.h
T
arthurtillyandFazana 9fc928ed70 Remove OBJECTS_REJ and clean up core render func (By Fazana) (#735)
* crowd pleaser

* Fix debug boxes

* fix comments

* renamed temp graphics head to be consistent

---------

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>
2023-12-15 08:48:32 -05:00

42 lines
986 B
C

#ifndef DEBUG_BOX_H
#define DEBUG_BOX_H
#ifdef VISUAL_DEBUG
/**
* @file debug_box.h
* Draws debug boxes, see debug_box.c for details
*/
#include "types.h"
/**
* The max amount of debug boxes before debug_box() just returns.
* You can set this to something higher, but you might run out of space in the gfx pool.
*/
#define MAX_DEBUG_BOXES 512
enum DebugBoxFlags {
DEBUG_SHAPE_BOX = (1 << 0), // 0x01
DEBUG_SHAPE_CYLINDER = (1 << 1), // 0x02
DEBUG_BOX_CLEAR = (1 << 2), // 0x04
};
extern u8 hitboxView;
extern u8 surfaceView;
extern void debug_box_input(void);
void debug_box_color(u32 color);
void debug_box(Vec3f center, Vec3f bounds, s32 type);
void debug_box_rot(Vec3f center, Vec3f bounds, s16 yaw, s32 type);
void debug_box_pos(Vec3f pMin, Vec3f pMax, s32 type);
void debug_box_pos_rot(Vec3f pMin, Vec3f pMax, s16 yaw, s32 type);
void render_debug_boxes(Gfx **gfx);
extern void visual_surface_loop(Gfx **gfx);
#endif
#endif /* DEBUG_BOX_H */