X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fcgmath%2Fcgmray.inl;h=c396a5539df0aa3df0eb93c55b2c712f4f1831df;hb=ff52b8546c5982313bb47b7bf8aed33fef21e77d;hp=063a7e0c82f7ae321345a4ebba55e9ec3aa06254;hpb=103b67f9f1e041dc5f6ffbb59004ebe846e3f3f9;p=deeprace diff --git a/libs/cgmath/cgmray.inl b/libs/cgmath/cgmray.inl index 063a7e0..c396a55 100644 --- a/libs/cgmath/cgmray.inl +++ b/libs/cgmath/cgmray.inl @@ -6,7 +6,7 @@ * If you intend to redistribute parts of the code without the LICENSE file * replace this paragraph with the full contents of the LICENSE file. */ -static inline void cgm_rcons(cgm_ray *r, float x, float y, float z, float dx, float dy, float dz) +static CGM_INLINE void cgm_rcons(cgm_ray *r, float x, float y, float z, float dx, float dy, float dz) { r->origin.x = x; r->origin.y = y; @@ -16,24 +16,24 @@ static inline void cgm_rcons(cgm_ray *r, float x, float y, float z, float dx, fl r->dir.z = dz; } -static inline void cgm_rmul_mr(cgm_ray *ray, const float *m) +static CGM_INLINE void cgm_rmul_mr(cgm_ray *ray, const float *m) { cgm_vmul_m4v3(&ray->origin, m); cgm_vmul_m3v3(&ray->dir, m); } -static inline void cgm_rmul_rm(cgm_ray *ray, const float *m) +static CGM_INLINE void cgm_rmul_rm(cgm_ray *ray, const float *m) { cgm_vmul_v3m4(&ray->origin, m); cgm_vmul_v3m3(&ray->dir, m); } -static inline void cgm_rreflect(cgm_ray *ray, const cgm_vec3 *n) +static CGM_INLINE void cgm_rreflect(cgm_ray *ray, const cgm_vec3 *n) { cgm_vreflect(&ray->dir, n); } -static inline void cgm_rrefract(cgm_ray *ray, const cgm_vec3 *n, float ior) +static CGM_INLINE void cgm_rrefract(cgm_ray *ray, const cgm_vec3 *n, float ior) { cgm_vrefract(&ray->dir, n, ior); }