2021-11-30 21:29:18 -06:00
|
|
|
#ifndef DEBUGDRAW_H
|
|
|
|
#define DEBUGDRAW_H
|
|
|
|
|
2023-01-25 21:32:58 -06:00
|
|
|
struct cpVect;
|
|
|
|
|
2021-11-30 21:29:18 -06:00
|
|
|
void debugdraw_init();
|
2023-01-16 02:16:39 -06:00
|
|
|
void draw_line(int x1, int y1, int x2, int y2, float *color);
|
2023-02-15 17:54:05 -06:00
|
|
|
void draw_edge(struct cpVect *points, int n, float *color, int thickness);
|
2023-01-25 21:32:58 -06:00
|
|
|
void draw_points(struct cpVect *points, int n, float size, float *color);
|
2023-01-16 02:16:39 -06:00
|
|
|
void draw_circle(int x, int y, float radius, int pixels, float *color, int fill);
|
2021-11-30 21:29:18 -06:00
|
|
|
void draw_grid(int width, int span);
|
2023-01-16 02:16:39 -06:00
|
|
|
void draw_rect(int x, int y, int w, int h, float *color);
|
2023-02-05 17:42:36 -06:00
|
|
|
void draw_box(struct cpVect c, struct cpVect wh);
|
2023-01-16 02:16:39 -06:00
|
|
|
void draw_point(int x, int y, float r, float *color);
|
2023-02-05 17:42:36 -06:00
|
|
|
void draw_cppoint(struct cpVect point, float r);
|
2023-01-16 02:16:39 -06:00
|
|
|
void draw_poly(float *points, int n, float *color);
|
2021-11-30 21:29:18 -06:00
|
|
|
|
2023-01-25 21:32:58 -06:00
|
|
|
|
2021-11-30 21:29:18 -06:00
|
|
|
void debugdraw_flush(); /* This is called once per frame to draw all queued elements */
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|