From 781ecd6529505e4bf1fd400634ee83bcb9a07c81 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 19 Mar 2017 04:51:01 -0500 Subject: I have no idea why I am doing this... --- src/graphics_c3.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/graphics_c3.h (limited to 'src/graphics_c3.h') diff --git a/src/graphics_c3.h b/src/graphics_c3.h new file mode 100644 index 0000000..b6e1a5a --- /dev/null +++ b/src/graphics_c3.h @@ -0,0 +1,55 @@ +#ifndef _HACKVR_GRAPHICS_H_ +#define _HACKVR_GRAPHICS_H_ + +//#include //this should be in the x11 one, not this one. + +struct gra_global { + unsigned int width; + unsigned int height; + int mousex; + int mousey; + int greyscale; + int xoff; + int split_screen; + real split; + int split_flip; + char force_redraw; + char red_and_blue; + unsigned int depth;//??? + unsigned int border_width; + int oldtime; + int fps; + int oldfps; + char zsort; + char drawminimap; + char drawsky; + char draw3d; + int mapxoff; + int mapyoff; + int rmousex; + int rmousey; + int buttonpressed; + int maxshapes; +}; + +typedef struct { + struct c3_shape *s; + real d; +} zsort_t; + +int graphics_init(); +int graphics_sub_init(); +int graphics_event_handler(); +void draw_screen(); +void set_aspect_ratio(); +int selfcommand(char *s); +cs_t c3_to_cs(c3_t p); +radians d2r(degrees d); +real shitdist(struct c3_shape *s,c3_t p); +c3_t rotate_c3_xr(c3_t p1,c3_t p2,radians xr); +c3_t rotate_c3_yr(c3_t p1,c3_t p2,radians yr); +c3_t rotate_c3_zr(c3_t p1,c3_t p2,radians zr); + +int compar(zsort_t *a,zsort_t *b); + +#endif -- cgit v1.2.3