From b28789a685e861332d276ff997bd775248e16173 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 25 Nov 2019 19:35:34 -0800 Subject: din: don't include v3f.h in din.h This requires a forward declaration of v3f_t and changing din() to take a v3f_t *. The swab module needed updating to supply a pointer type and a v3f_t definition. This is being done so din.h users can have their own v3f implementations. I might consolidate all the duplicated vector code scattered throughout the libs and modules, but for now I'm carrying on with the original intention of having modules be largely self-contained. Though the introduction of libs like ray and din has certainly violated that a bit already. --- src/libs/din/din.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libs/din/din.h') diff --git a/src/libs/din/din.h b/src/libs/din/din.h index 2e06072..baa3ebb 100644 --- a/src/libs/din/din.h +++ b/src/libs/din/din.h @@ -1,13 +1,12 @@ #ifndef _DIN_H #define _DIN_H -#include "v3f.h" - typedef struct din_t din_t; +typedef struct v3f_t v3f_t; din_t * din_new(int width, int height, int depth); void din_free(din_t *din); void din_randomize(din_t *din); -float din(din_t *din, v3f_t coordinate); +float din(din_t *din, v3f_t *coordinate); #endif -- cgit v1.2.1