Use const for SetProjectionMatrix
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sun, 16 May 2004 12:55:21 +0000 (12:55 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sun, 16 May 2004 12:55:21 +0000 (12:55 +0000)
Remove warning printf.

source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp

index 647fb21988a24d3378fa3ac921bf8394830a970d..5df296970a38a851ce270510efda6627f189405d 100644 (file)
@@ -1067,7 +1067,7 @@ void RAS_OpenGLRasterizer::SetProjectionMatrix(MT_CmMatrix4x4 &mat)
 }
 
 
-void RAS_OpenGLRasterizer::SetProjectionMatrix(MT_Matrix4x4 & mat)
+void RAS_OpenGLRasterizer::SetProjectionMatrix(const MT_Matrix4x4 & mat)
 {
        glMatrixMode(GL_PROJECTION);
        double matrix[16];
index d7488b9901a4786feb93d31c25a9727f49da1c88..509e4c63c9359afb16cfac21ce615ab23576adec 100644 (file)
@@ -152,7 +152,7 @@ public:
                                        );
 
        virtual void    SetProjectionMatrix(MT_CmMatrix4x4 & mat);
-       virtual void    SetProjectionMatrix(MT_Matrix4x4 & mat);
+       virtual void    SetProjectionMatrix(const MT_Matrix4x4 & mat);
        virtual void    SetViewMatrix(
                                                const MT_Matrix4x4 & mat,
                                                const MT_Vector3& campos,
index 8a51a25e6aa3576ddc7ac2b611b8b1a310c2f6e7..c0d90bb3c095101a1ff179c389024fde8c79eac3 100644 (file)
@@ -184,15 +184,6 @@ void RAS_VAOpenGLRasterizer::IndexPrimitives( const vecVertexArray& vertexarrays
        }
        // use glDrawElements to draw each vertexarray
        static bool doWarning = true;
-       if (vertexarrays.size() > 1 && doWarning)
-       {
-               /* TODO: if vertexarrays.size() == 1 then if we are multitexturing
-                  we can glLockArraysEXT the vertex arrays - GL will be able to cache
-                  the vertex transforms. */
-               std::cout << "# vertex arrays: " << vertexarrays.size() << std::endl;
-               std::cout << "I wondered if this could happen: please inform the proper authorities." << std::endl;
-               doWarning = false;
-       }
        
        for (vt=0;vt<vertexarrays.size();vt++)
        {