Added CPP Check project

This commit is contained in:
Christophe Riccio
2012-01-03 16:22:37 +00:00
parent ae14356c24
commit 22ebdf4b08
14 changed files with 43 additions and 16 deletions

View File

@@ -12,6 +12,7 @@
static int test_operators()
{
glm::mat2x2 m(1.0f);
glm::mat2x2 n(1.0f);
glm::vec2 u(1.0f);
glm::vec2 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static int test_operators()
glm::mat2x2 p = x * m;
glm::mat2x2 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -12,6 +12,7 @@
static int test_operators()
{
glm::mat2x3 m(1.0f);
glm::mat2x3 n(1.0f);
glm::vec2 u(1.0f);
glm::vec3 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static int test_operators()
glm::mat2x3 p = x * m;
glm::mat2x3 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -12,6 +12,7 @@
static int test_operators()
{
glm::mat2x4 m(1.0f);
glm::mat2x4 n(1.0f);
glm::vec2 u(1.0f);
glm::vec4 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static int test_operators()
glm::mat2x4 p = x * m;
glm::mat2x4 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -12,6 +12,7 @@
static bool test_operators()
{
glm::mat3x2 m(1.0f);
glm::mat3x2 n(1.0f);
glm::vec3 u(1.0f);
glm::vec2 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static bool test_operators()
glm::mat3x2 p = x * m;
glm::mat3x2 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -37,6 +37,7 @@ int test_mat3x3()
static int test_operators()
{
glm::mat3x3 m(1.0f);
glm::mat3x3 n(1.0f);
glm::vec3 u(1.0f);
glm::vec3 v(1.0f);
float x = 1.0f;
@@ -47,7 +48,7 @@ static int test_operators()
glm::mat3x3 p = x * m;
glm::mat3x3 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -12,6 +12,7 @@
static bool test_operators()
{
glm::mat3x4 m(1.0f);
glm::mat3x4 n(1.0f);
glm::vec3 u(1.0f);
glm::vec4 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static bool test_operators()
glm::mat3x4 p = x * m;
glm::mat3x4 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -12,6 +12,7 @@
static int test_operators()
{
glm::mat4x2 m(1.0f);
glm::mat4x2 n(1.0f);
glm::vec4 u(1.0f);
glm::vec2 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static int test_operators()
glm::mat4x2 p = x * m;
glm::mat4x2 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -12,6 +12,7 @@
static int test_operators()
{
glm::mat4x3 m(1.0f);
glm::mat4x3 n(1.0f);
glm::vec4 u(1.0f);
glm::vec3 v(1.0f);
float x = 1.0f;
@@ -22,7 +23,7 @@ static int test_operators()
glm::mat4x3 p = x * m;
glm::mat4x3 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}

View File

@@ -40,6 +40,7 @@ int test_mat4x4()
static bool test_operators()
{
glm::mat4x4 m(1.0f);
glm::mat4x4 n(1.0f);
glm::vec4 u(1.0f);
glm::vec4 v(1.0f);
float x = 1.0f;
@@ -50,7 +51,7 @@ static bool test_operators()
glm::mat4x4 p = x * m;
glm::mat4x4 q = m * x;
bool R = m != q;
bool S = m == m;
bool S = m == n;
return (S && !R) ? 0 : 1;
}