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;
}

View File

@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="1">
<root name="glm"/>
<includedir>
<dir name=".."/>
<dir name="../glm"/>
</includedir>
<paths>
<dir name=".."/>
</paths>
</project>

View File

@@ -15,6 +15,7 @@ int test_radialGradient()
int Error = 0;
float Gradient = glm::radialGradient(glm::vec2(0), 1.0f, glm::vec2(1), glm::vec2(0.5));
Error += Gradient != 0.0f ? 0 : 1;
return Error;
}
@@ -24,6 +25,7 @@ int test_linearGradient()
int Error = 0;
float Gradient = glm::linearGradient(glm::vec2(0), glm::vec2(1), glm::vec2(0.5));
Error += Gradient != 0.0f ? 0 : 1;
return Error;
}