prepare for Box2D style gui demo

This commit is contained in:
ejcoumans
2007-10-18 06:37:36 +00:00
parent 8f7b132d23
commit dbe502c5a8
19 changed files with 902 additions and 101 deletions

View File

@@ -18,15 +18,15 @@ subject to the following restrictions:
#define GEN_MINMAX_H
template <class T>
SIMD_FORCE_INLINE const T& GEN_min(const T& a, const T& b)
SIMD_FORCE_INLINE const T& btMin(const T& a, const T& b)
{
return b < a ? b : a;
return a < b ? a : b ;
}
template <class T>
SIMD_FORCE_INLINE const T& GEN_max(const T& a, const T& b)
SIMD_FORCE_INLINE const T& btMax(const T& a, const T& b)
{
return a < b ? b : a;
return a > b ? a : b;
}
template <class T>
@@ -36,7 +36,7 @@ SIMD_FORCE_INLINE const T& GEN_clamped(const T& a, const T& lb, const T& ub)
}
template <class T>
SIMD_FORCE_INLINE void GEN_set_min(T& a, const T& b)
SIMD_FORCE_INLINE void btSetMin(T& a, const T& b)
{
if (b < a)
{
@@ -45,7 +45,7 @@ SIMD_FORCE_INLINE void GEN_set_min(T& a, const T& b)
}
template <class T>
SIMD_FORCE_INLINE void GEN_set_max(T& a, const T& b)
SIMD_FORCE_INLINE void btSetMax(T& a, const T& b)
{
if (a < b)
{