]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mathlib.h
r_nearclip cvar
[xonotic/darkplaces.git] / mathlib.h
index 678f4e220c0d14434b97a2f1489f8c2686d15d8f..b40e6f33739271ea23938b779b841c63f917da33 100644 (file)
--- a/mathlib.h
+++ b/mathlib.h
@@ -180,8 +180,8 @@ float VectorNormalizeLength2 (vec3_t v, vec3_t dest);               // returns vector length
 #define NUMVERTEXNORMALS       162
 extern float m_bytenormals[NUMVERTEXNORMALS][3];
 
-qbyte NormalToByte(const vec3_t n);
-void ByteToNormal(qbyte num, vec3_t n);
+unsigned char NormalToByte(const vec3_t n);
+void ByteToNormal(unsigned char num, vec3_t n);
 
 void R_ConcatRotations (const float in1[3*3], const float in2[3*3], float out[3*3]);
 void R_ConcatTransforms (const float in1[3*4], const float in2[3*4], float out[3*4]);
@@ -208,13 +208,13 @@ void BoxPlaneCornerDistances_Separate(const vec3_t emins, const vec3_t emaxs, co
 #define PlaneDiff(point,plane) (((plane)->type < 3 ? (point)[(plane)->type] : DotProduct((point), (plane)->normal)) - (plane)->dist)
 
 // LordHavoc: minimal plane structure
-typedef struct
+typedef struct tinyplane_s
 {
        float normal[3], dist;
 }
 tinyplane_t;
 
-typedef struct
+typedef struct tinydoubleplane_s
 {
        double normal[3], dist;
 }