Ver Fonte

Remove build_projection_ortho_2d_rh

Daniele Bartolini há 12 anos atrás
pai
commit
a2efb85676
2 ficheiros alterados com 0 adições e 24 exclusões
  1. 0 21
      engine/core/math/Matrix4x4.cpp
  2. 0 3
      engine/core/math/Matrix4x4.h

+ 0 - 21
engine/core/math/Matrix4x4.cpp

@@ -648,27 +648,6 @@ void Matrix4x4::build_projection_ortho_lh(float width, float height, float near,
 	m[15] = (float)1.0;
 }
 
-//-----------------------------------------------------------------------------
-void Matrix4x4::build_projection_ortho_2d_rh(float width, float height, float near, float far)
-{
-	m[0] = (float)2.0 / width;
-	m[1] = 0.0;
-	m[2] = 0.0;
-	m[3] = 0.0;
-	m[4] = 0.0;
-	m[5] = (float)-2.0 / height;
-	m[6] = 0.0;
-	m[7] = 0.0;
-	m[8] = 0.0;
-	m[9] = 0.0;
-	m[10] = (float)2.0 / (near - far);
-	m[11] = 0.0;
-	m[12] = (float)-1.0 + (m[0] * (float)0.375);		// Add 0.375 to acheive
-	m[13] =  (float)1.0 + (m[5] * (float)0.375);		// pixel-perfect 2d drawing
-	m[14] = near / (near - far);
-	m[15] = (float)1.0;
-}
-
 //-----------------------------------------------------------------------------
 Matrix4x4& Matrix4x4::transpose()
 {

+ 0 - 3
engine/core/math/Matrix4x4.h

@@ -132,9 +132,6 @@ public:
 	/// Builds an orthographic projection matrix suited to Left-Handed coordinate systems		
 	void				build_projection_ortho_lh(float width, float height, float near, float far);	
 
-	/// Builds a 2d orthographic projection matrix suited to Right-Handed coordinate systems	
-	void				build_projection_ortho_2d_rh(float width, float height, float near, float far);	
-
 	/// Builds a "Righ-Handed look-at" matrix from a position, a target, and an up vector
 	void				build_look_at_rh(const Vector3& pos, const Vector3& target, const Vector3& up);