forgot to commit these
[xonotic/darkplaces.git] / winding.h
1
2 #ifndef WINDING_H
3 #define WINDING_H
4
5 typedef struct
6 {
7         int numpoints;
8         int padding;
9         double points[8][3]; // variable sized
10 }
11 winding_t;
12
13 winding_t *Winding_New(int points);
14 void Winding_Free(winding_t *w);
15 winding_t *Winding_NewFromPlane(double normalx, double normaly, double normalz, double dist);
16 winding_t *Winding_Clip(winding_t *in, double splitnormalx, double splitnormaly, double splitnormalz, double splitdist, int keepon);
17 void Winding_Divide(winding_t *in, double splitnormalx, double splitnormaly, double splitnormalz, double splitdist, winding_t **front, winding_t **back);
18
19 #endif
20