Parcourir la source

Real type alias

Lucien Greathouse il y a 1 an
Parent
commit
0f81fd82b1
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      JoltC/Functions.h

+ 2 - 0
JoltC/Functions.h

@@ -55,8 +55,10 @@ ENSURE_SIZE_ALIGN(JPC_Quat, JPH::Quat);
 
 #ifdef JPC_DOUBLE_PRECISION
 	typedef JPC_DVec3 JPC_RVec3;
+	typedef double Real;
 #else
 	typedef JPC_Vec3 JPC_RVec3;
+	typedef float Real;
 #endif
 
 ENSURE_SIZE_ALIGN(JPC_RVec3, JPH::RVec3);