From a2e00c099d28e541c0e1fa1bd4fa8d3e386ae089 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sun, 8 Apr 2018 15:50:49 -0600 Subject: Put compile inline hint for linmath functions --- redist/linmath.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redist/linmath.h') diff --git a/redist/linmath.h b/redist/linmath.h index e268e96..60cc9d6 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -8,7 +8,7 @@ extern "C" { #endif #ifdef _WIN32 -#define LINMATH_EXPORT __declspec(dllexport) +#define LINMATH_EXPORT extern __declspec(dllexport) #else #define LINMATH_EXPORT __attribute__((visibility("default"))) #endif @@ -108,6 +108,7 @@ FLT quatmagnitude(const LinmathQuat q); FLT quatinvsqmagnitude(const LinmathQuat q); LINMATH_EXPORT void quatnormalize(LinmathQuat qout, const LinmathQuat qin); // Safe for in to be same as out. LINMATH_EXPORT void quattomatrix(FLT *matrix44, const LinmathQuat q); +LINMATH_EXPORT void quattomatrix33(FLT *matrix33, const LinmathQuat qin); LINMATH_EXPORT void quatfrommatrix(LinmathQuat q, const FLT *matrix44); LINMATH_EXPORT void quatfrommatrix33(LinmathQuat q, const FLT *matrix33); LINMATH_EXPORT void quatgetconjugate(LinmathQuat qout, const LinmathQuat qin); -- cgit v1.2.3 From 42462d9253229835800814519593d6af0b5fbfc4 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Tue, 10 Apr 2018 09:06:00 -0600 Subject: Added utility function to linmath --- redist/linmath.h | 1 + 1 file changed, 1 insertion(+) (limited to 'redist/linmath.h') diff --git a/redist/linmath.h b/redist/linmath.h index 60cc9d6..29db5a9 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -99,6 +99,7 @@ LINMATH_EXPORT void axisanglefromquat(FLT *angle, FLT *axis, LinmathQuat quat); typedef FLT LinmathEulerAngle[3]; +LINMATH_EXPORT void quatset(LinmathQuat q, FLT w, FLT x, FLT y, FLT z); LINMATH_EXPORT void quatsetnone(LinmathQuat q); LINMATH_EXPORT void quatcopy(LinmathQuat q, const LinmathQuat qin); LINMATH_EXPORT void quatfromeuler(LinmathQuat q, const LinmathEulerAngle euler); -- cgit v1.2.3