diff --git a/engine/common/mathlib.h b/engine/common/mathlib.h index be5e46540..accb22d4e 100644 --- a/engine/common/mathlib.h +++ b/engine/common/mathlib.h @@ -106,7 +106,10 @@ void RotatePointAroundVector( vec3_t dst, const vec3_t dir, const vec3_t point, //used for crosshair stuff. void ML_Project (vec3_t in, vec3_t out, vec3_t viewangles, vec3_t vieworg, float wdivh, float fovy); void Matrix3_Multiply (vec3_t *in1, vec3_t *in2, vec3_t *out); +void Matrix4_Multiply(float *a, float *b, float *out); void Matrix4_Transform3(float *matrix, float *vector, float *product); +void Matrix4_Transform4(float *matrix, float *vector, float *product); +void Matrix4x4_Invert_Simple (float *out, const float *in1); void ML_ModelViewMatrix(float *modelview, vec3_t viewangles, vec3_t vieworg); void ML_ProjectionMatrix2(float *proj, float fovx, float fovy); void ML_ModelViewMatrixFromAxis(float *modelview, vec3_t pn, vec3_t right, vec3_t up, vec3_t vieworg); diff --git a/engine/common/particles.h b/engine/common/particles.h index 1f628401c..2cc9189c3 100644 --- a/engine/common/particles.h +++ b/engine/common/particles.h @@ -144,6 +144,7 @@ int P_AllocateParticleType(char *name); //find one if it exists, or create if it int P_FindParticleType(char *name); //checks if particle description 'name' exists, returns -1 if not. int P_DescriptionIsLoaded(char *name); //returns true if it's usable. +qboolean P_TypeIsLoaded(int effect); void P_SkyTri(float *v1, float *v2, float *v3, struct msurface_s *surf);