removed two unused Key_Event implementations (which let me remove some unused variabl...
[xonotic/darkplaces.git] / winding.h
index c026d40..cc146b9 100644 (file)
--- a/winding.h
+++ b/winding.h
@@ -5,7 +5,7 @@
 typedef struct
 {
        int numpoints;
-       int padding;
+       int maxpoints;
        double points[8][3]; // variable sized
 }
 winding_t;
@@ -15,6 +15,10 @@ void Winding_Free(winding_t *w);
 winding_t *Winding_NewFromPlane(double normalx, double normaly, double normalz, double dist);
 winding_t *Winding_Clip(winding_t *in, double splitnormalx, double splitnormaly, double splitnormalz, double splitdist, int keepon);
 void Winding_Divide(winding_t *in, double splitnormalx, double splitnormaly, double splitnormalz, double splitdist, winding_t **front, winding_t **back);
+void BufWinding_NewFromPlane(winding_t *w, double normalx, double normaly, double normalz, double dist);
+void BufWinding_Divide(winding_t *in, double splitnormalx, double splitnormaly, double splitnormalz, double splitdist, winding_t *outfront, int *neededfrontpoints, winding_t *outback, int *neededbackpoints);
+void Polygon_Divide_Double(int innumpoints, const double *inpoints, double splitnormalx, double splitnormaly, double splitnormalz, double splitdist, int outfrontmaxpoints, double *outfrontpoints, int *neededfrontpoints, int outbackmaxpoints, double *outbackpoints, int *neededbackpoints);
+void Polygon_Divide_Float(int innumpoints, const float *inpoints, float splitnormalx, float splitnormaly, float splitnormalz, float splitdist, int outfrontmaxpoints, float *outfrontpoints, int *neededfrontpoints, int outbackmaxpoints, float *outbackpoints, int *neededbackpoints);
 
 #endif