prosperon/source/engine/debug/debugdraw.h

27 lines
1 KiB
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef DEBUGDRAW_H
#define DEBUGDRAW_H
2023-03-19 20:33:05 -05:00
#include <chipmunk/chipmunk.h>
2023-03-03 13:07:59 -06:00
struct color;
2023-01-25 21:32:58 -06:00
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-03-17 10:25:35 -05:00
void draw_edge(struct cpVect *points, int n, struct color color, int thickness);
2023-01-25 21:32:58 -06:00
void draw_points(struct cpVect *points, int n, float size, float *color);
2023-03-17 10:25:35 -05:00
void draw_arrow(struct cpVect start, struct cpVect end, struct color, int capsize);
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-03-03 13:07:59 -06:00
void draw_box(struct cpVect c, struct cpVect wh, struct color color);
2023-01-16 02:16:39 -06:00
void draw_point(int x, int y, float r, float *color);
2023-03-10 13:13:48 -06:00
void draw_cppoint(struct cpVect point, float r, struct color color);
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 */
2023-03-19 20:33:05 -05:00
cpVect inflatepoint(cpVect a, cpVect b, cpVect c, float d);
void inflatepoints(cpVect *r, cpVect *p, float d, int n);
2021-11-30 21:29:18 -06:00
#endif