prosperon/source/engine/debug/debugdraw.h

28 lines
941 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef DEBUGDRAW_H
#define DEBUGDRAW_H
2023-06-05 10:32:45 -05:00
#include "HandmadeMath.h"
2023-05-16 01:31:13 -05:00
struct rgba;
2023-01-25 21:32:58 -06:00
2021-11-30 21:29:18 -06:00
void debugdraw_init();
2023-11-14 09:20:09 -06:00
void draw_cppoint(HMM_Vec2 point, float r, struct rgba color);
void draw_points(HMM_Vec2 *points, int n, float size, struct rgba color);
2023-05-16 13:31:19 -05:00
2023-12-19 17:28:45 -06:00
void draw_line(HMM_Vec2 *points, int n, struct rgba color, float seg_len, float seg_speed);
void draw_edge(HMM_Vec2 *points, int n, struct rgba color, int thickness, int flags, struct rgba line_color, float line_seg);
2023-05-16 13:31:19 -05:00
2023-05-24 20:45:50 -05:00
/* pixels - how many pixels thick, segsize - dashed line seg len */
2023-11-14 09:20:09 -06:00
void draw_circle(HMM_Vec2 c, float radius, float pixels, struct rgba color, float seg);
void draw_box(HMM_Vec2 c, HMM_Vec2 wh, struct rgba color);
void draw_poly(HMM_Vec2 *points, int n, struct rgba color);
2021-11-30 21:29:18 -06:00
void draw_grid(float width, float span, struct rgba color);
2023-05-07 19:47:49 -05:00
2023-06-05 10:32:45 -05:00
void debug_flush(HMM_Mat4 *view);
void debug_newframe();
void debug_nextpass();
2021-11-30 21:29:18 -06:00
2023-11-14 09:20:09 -06:00
HMM_Vec2 *inflatepoints(HMM_Vec2 *p, float d, int n);
2021-11-30 21:29:18 -06:00
#endif