#pragma once #include #include "types.hpp" struct DebugOverlay { bool enable = true; int mode = DBG_OVERLAY; }; extern DebugOverlay g_dbg; void dbg_draw_init(uint16* fb_buffer, int w, int h); void dbg_draw_line(int x0, int y0, int x1, int y1, uint8 r, uint8 g, uint8 b); void dbg_draw_cross(int cx, int cy, int size, uint8 r, uint8 g, uint8 b); void dbg_draw_rect(int x, int y, int w, int h, uint8 r, uint8 g, uint8 b); void dbg_draw_points(const int points[][2], int count, uint8 r, uint8 g, uint8 b); void dbg_draw_edge_zoom(const EdgeLines& lines, uint8 r, uint8 g, uint8 b);