commit 6f8c72b41eef06af203ba773c2667c47d1a61a43
parent 673b3048ec807677fab039260b80350433c13bda
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 24 Aug 2016 15:08:32 +0200
Add a new geometry for tests
Diffstat:
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/test_ssol_geometries.h b/src/test_ssol_geometries.h
@@ -22,9 +22,28 @@ struct desc {
};
/*******************************************************************************
- * Box
+ * Plane
******************************************************************************/
+static const float plane_walls [] = {
+ -1, -1, 0,
+ 1, -1, 0,
+ 1, 1, 0,
+ -1, 1, 0
+};
+const unsigned plane_walls_nverts = sizeof(plane_walls) / sizeof(float[3]);
+
+const unsigned plane_walls_ids [] = {
+ 0, 1, 2, 2, 3, 0
+};
+const unsigned plane_walls_ntris = sizeof(plane_walls_ids) / sizeof(unsigned[3]);
+
+static struct desc plane_walls_desc = { plane_walls, plane_walls_ids };
+
+/*******************************************************************************
+* Box
+******************************************************************************/
+
static const float box_walls [] = {
552.f, 0.f, 0.f,
0.f, 0.f, 0.f,