]> git.lizzy.rs Git - minetest.git/blobdiff - src/util/directiontables.cpp
fix: don't use RenderingEngine singleton when it's possible
[minetest.git] / src / util / directiontables.cpp
index a5d2faa7c8d268efdd723f6ae230796a16f2e919..296585f9098b62018b9e74630621637f56d38d2f 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -30,6 +30,17 @@ const v3s16 g_6dirs[6] =
        v3s16(-1, 0, 0) // left
 };
 
+const v3s16 g_7dirs[7] =
+{
+       v3s16(0,0,1), // back
+       v3s16(0,1,0), // top
+       v3s16(1,0,0), // right
+       v3s16(0,0,-1), // front
+       v3s16(0,-1,0), // bottom
+       v3s16(-1,0,0), // left
+       v3s16(0,0,0), // self
+};
+
 const v3s16 g_26dirs[26] =
 {
        // +right, +top, +back
@@ -99,3 +110,11 @@ const v3s16 g_27dirs[27] =
        v3s16(0,0,0),
 };
 
+const u8 wallmounted_to_facedir[6] = {
+       20,
+       0,
+       16 + 1,
+       12 + 3,
+       8,
+       4 + 2
+};