src/miscallenous.h

changeset 754
c37564d59ce1
parent 733
cc39df788660
child 755
d2bd4139040c
--- a/src/miscallenous.h	Mon Apr 28 18:27:02 2014 +0300
+++ b/src/miscallenous.h	Mon Apr 28 21:31:24 2014 +0300
@@ -51,17 +51,18 @@
 // Grid stuff
 struct gridinfo
 {
-	const char* const	name;
-	float* const		confs[4];
+	const char* const			name;
+	Config::FloatType* const	coordsnap;
+	Config::FloatType* const	anglesnap;
 };
 
 extern_cfg (Int, grid);
-static const int g_NumGrids = 3;
-extern const gridinfo g_GridInfo[3];
+static const int g_numGrids = 3;
+extern const gridinfo g_gridInfo[3];
 
 inline const gridinfo& currentGrid()
 {
-	return g_GridInfo[grid];
+	return g_gridInfo[grid];
 }
 
 // =============================================================================
@@ -87,13 +88,11 @@
 
 	enum Config
 	{
-		X,
-		Y,
-		Z,
+		Coordinate,
 		Angle
 	};
 
-	double snap (double value, const Grid::Config axis);
+	double snap (double value, const Grid::Config type);
 }
 
 // =============================================================================

mercurial