prosperon/source/engine/debug/debugdraw.h

21 lines
659 B
C
Raw Normal View History

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-01-25 21:32:58 -06:00
void draw_edge(struct cpVect *points, int n, float *color);
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);
void draw_point(int x, int y, float r, float *color);
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