From d98c4fe440f2abe3a6682e9e7f9a439fe2540a21 Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 9 Feb 2017 02:12:42 -0600 Subject: 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. --- src/graphics.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/graphics.h') 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); -- cgit v1.2.3