summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-02-09 02:12:42 -0600
committerepoch <epoch@hacking.allowed.org>2017-02-09 02:12:42 -0600
commitd98c4fe440f2abe3a6682e9e7f9a439fe2540a21 (patch)
treed9a84ae8d429c9cf0ead55d3e93599c9ba4dd9cb /src/graphics.h
parent15e1287f8bdd952ebce07fcd88381a9c2d836a61 (diff)
downloadhackvr-d98c4fe440f2abe3a6682e9e7f9a439fe2540a21.tar.gz
hackvr-d98c4fe440f2abe3a6682e9e7f9a439fe2540a21.zip
converted more things to use the radians and degrees structures, fixed up distance between camera stuff (try using p and l to change during runtime) and got rid of a couple things that were commented out anyway.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/graphics.h b/src/graphics.h
index b351d2c..eadaa54 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -11,7 +11,7 @@ struct gra_global {
int greyscale;
int xoff;
int split_screen;
- int split;
+ real split;
int split_flip;
char force_redraw;
char red_and_blue;
@@ -42,12 +42,11 @@ void draw_screen();
void set_aspect_ratio();
int selfcommand(char *s);
cs_t c3_to_cs(c3_t p);
-real d2r(int d);
+radians d2r(degrees d);
real shitdist(struct c3_shape *s,c3_t p);
-c3_t rotate_c3_xr(c3_t p1,c3_t p2,real xr);
-c3_t rotate_c3_yr(c3_t p1,c3_t p2,real yr);
-c3_t rotate_c3_zr(c3_t p1,c3_t p2,real zr);
-real points_to_angle(c2_t p1,c2_t p2);
+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);