Browse Source

Make sure that dummy.cpp is not for being built

Christophe Riccio 15 years ago
parent
commit
a7c7645c99
1 changed files with 2 additions and 103 deletions
  1. 2 103
      glm/core/dummy.cpp

+ 2 - 103
glm/core/dummy.cpp

@@ -1,110 +1,9 @@
 #include "../glm.hpp"
 #include "../ext.hpp"
-#include <map>
+
+#error "GLM is a header only library, there is nothing to compile. dummy.cpp and the CMake file are only here for GLM development purposes"
 
 int main()
 {
-	//glm::mat2x3 m1(1.0f);
-	//glm::vec3 v1(1.0f);
-	//glm::vec2 w1 = m1 * v1;
-
-	{
-		glm::mat2x3 m(1.0f);
-		glm::vec2 u(1.0f);
-		glm::vec3 v(1.0f);
-		float x = 1.0f;
-		glm::vec3 a = m * u;
-		glm::vec2 b = v * m;
-		glm::mat2x3 n = x / m;
-		glm::mat2x3 o = m / x;
-		glm::mat2x3 p = x * m;
-		glm::mat2x3 q = m * x;
-	}
-
-	{
-		glm::mat2x4 m(1.0f);
-		glm::vec2 u(1.0f);
-		glm::vec4 v(1.0f);
-		float x = 1.0f;
-		glm::vec4 a = m * u;
-		glm::vec2 b = v * m;
-		glm::mat2x4 n = x / m;
-		glm::mat2x4 o = m / x;
-		glm::mat2x4 p = x * m;
-		glm::mat2x4 q = m * x;
-	}
-
-	{
-		glm::mat3x2 m(1.0f);
-		glm::vec3 u(1.0f);
-		glm::vec2 v(1.0f);
-		float x = 1.0f;
-		glm::vec2 a = m * u;
-		glm::vec3 b = v * m;
-		glm::mat3x2 n = x / m;
-		glm::mat3x2 o = m / x;
-		glm::mat3x2 p = x * m;
-		glm::mat3x2 q = m * x;
-	}
-
-	{
-		glm::mat3x4 m(1.0f);
-		glm::vec3 u(1.0f);
-		glm::vec4 v(1.0f);
-		float x = 1.0f;
-		glm::vec4 a = m * u;
-		glm::vec3 b = v * m;
-		glm::mat3x4 n = x / m;
-		glm::mat3x4 o = m / x;
-		glm::mat3x4 p = x * m;
-		glm::mat3x4 q = m * x;
-	}
-
-	{
-		glm::mat4x2 m(1.0f);
-		glm::vec4 u(1.0f);
-		glm::vec2 v(1.0f);
-		float x = 1.0f;
-		glm::vec2 a = m * u;
-		glm::vec4 b = v * m;
-		glm::mat4x2 n = x / m;
-		glm::mat4x2 o = m / x;
-		glm::mat4x2 p = x * m;
-		glm::mat4x2 q = m * x;
-	}
-
-	{
-		glm::mat4x3 m(1.0f);
-		glm::vec4 u(1.0f);
-		glm::vec3 v(1.0f);
-		float x = 1.0f;
-		glm::vec3 a = m * u;
-		glm::vec4 b = v * m;
-		glm::mat4x3 n = x / m;
-		glm::mat4x3 o = m / x;
-		glm::mat4x3 p = x * m;
-		glm::mat4x3 q = m * x;
-	}
-/*
-	class test
-	{
-	private:
-		glm::vec3 Data;
-	};
 
-	std::map<int, test*> TestMap;
-	TestMap.insert(std::make_pair(0, new test));
-	TestMap.insert(std::make_pair(1, new test));
-	TestMap.insert(std::make_pair(2, new test));
-	std::map<int, test*>::iterator It = TestMap.find(1);
-	if(It != TestMap.end())
-	{
-		TestMap.insert(std::make_pair(3, new test));
-	}
-*/
-	//{
-	//	glm::mat3x4 m(1.0f);
-	//	glm::vec3 v(1.0f);
-	//	glm::vec4 w = m * v;
-	//}
 }