Commit: a501eb51e280251b4ec99efacade6de261f4373b
Author: Porteries Tristan
Date:   Sat Oct 31 11:55:21 2015 +0100
Branches: temp_bge_moto
https://developer.blender.org/rBa501eb51e280251b4ec99efacade6de261f4373b

BGE: Moto: Use MT_Scalar instead of double in MT_CmMatrix4x4.

===================================================================

M       intern/moto/include/MT_CmMatrix4x4.h
M       intern/moto/intern/MT_CmMatrix4x4.cpp

===================================================================

diff --git a/intern/moto/include/MT_CmMatrix4x4.h 
b/intern/moto/include/MT_CmMatrix4x4.h
index 5c89b86..937bc70 100644
--- a/intern/moto/include/MT_CmMatrix4x4.h
+++ b/intern/moto/include/MT_CmMatrix4x4.h
@@ -59,7 +59,7 @@ public :
                for (int i=0;i<4;i++)
                {
                        for (int j=0;j<4;j++)
-                               m_V[i][j] = (double)value[i][j];
+                               m_V[i][j] = (MT_Scalar)value[i][j];
                }
        }
 
@@ -85,19 +85,19 @@ public :
                const MT_CmMatrix4x4 & other
        );
 
-               double*
+               MT_Scalar*
        getPointer(
        );
 
        const
-               double*
+               MT_Scalar*
        getPointer(
        ) const;
 
        template <typename T>
        void setElem(int pos, T newvalue)
        {
-               m_Vflat[pos] = (double)newvalue;
+               m_Vflat[pos] = (MT_Scalar)newvalue;
        }
 
                MT_Vector3
@@ -121,7 +121,7 @@ public :
                const MT_Vector3 & v
        );
 
-               double&
+               MT_Scalar&
        operator (
        ) (int row,int col)     { return m_V[col][row]; }
 
@@ -139,8 +139,8 @@ public :
 protected:
        union
        {
-               double m_V[4][4];
-               double m_Vflat[16];
+               MT_Scalar m_V[4][4];
+               MT_Scalar m_Vflat[16];
        };
 };
 
diff --git a/intern/moto/intern/MT_CmMatrix4x4.cpp 
b/intern/moto/intern/MT_CmMatrix4x4.cpp
index ba1bc30..a2ae9d5 100644
--- a/intern/moto/intern/MT_CmMatrix4x4.cpp
+++ b/intern/moto/intern/MT_CmMatrix4x4.cpp
@@ -126,14 +126,14 @@ void MT_CmMatrix4x4::SetMatrix(const MT_CmMatrix4x4& 
other)
 
 
 
-double*        MT_CmMatrix4x4::getPointer()
+MT_Scalar*     MT_CmMatrix4x4::getPointer()
 {
        return &m_V[0][0];
 }
 
 
 
-const double* MT_CmMatrix4x4::getPointer() const
+const MT_Scalar* MT_CmMatrix4x4::getPointer() const
 {
        return &m_V[0][0];
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to