summaryrefslogtreecommitdiff
path: root/src/graphics_c3.h
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-03-19 04:51:01 -0500
committerepoch <epoch@hacking.allowed.org>2017-03-19 04:51:01 -0500
commit781ecd6529505e4bf1fd400634ee83bcb9a07c81 (patch)
treea5f51756d54dff5ebb47f5435198e1db15ce345d /src/graphics_c3.h
parent17347b2e23292aad11c879d3df4a0e73c31e2ae8 (diff)
downloadhackvr-781ecd6529505e4bf1fd400634ee83bcb9a07c81.tar.gz
hackvr-781ecd6529505e4bf1fd400634ee83bcb9a07c81.zip
I have no idea why I am doing this...
Diffstat (limited to 'src/graphics_c3.h')
-rw-r--r--src/graphics_c3.h55
1 files changed, 55 insertions, 0 deletions
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 <X11/Xlib.h>//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