Minetest  5.4.0
directiontables.h
Go to the documentation of this file.
1 /*
2 Minetest
3 Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14 
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 #pragma once
21 
22 #include "irrlichttypes.h"
23 #include "irr_v3d.h"
24 
25 extern const v3s16 g_6dirs[6];
26 
27 extern const v3s16 g_7dirs[7];
28 
29 extern const v3s16 g_26dirs[26];
30 
31 // 26th is (0,0,0)
32 extern const v3s16 g_27dirs[27];
33 
34 extern const u8 wallmounted_to_facedir[6];
35 
39 // 0
46 // 6
59 // 18
68 // 26
69  D6D,
70 
71 // aliases
78 };
79 
89 };
Direction6D
Direction in the 6D format.
Definition: directiontables.h:38
@ D6D_XP
Definition: directiontables.h:42
@ D6D_XN_ZN
Definition: directiontables.h:53
@ D6D_ZP
Definition: directiontables.h:40
@ D6D_XN_YP_ZP
Definition: directiontables.h:60
@ D6D_ZN
Definition: directiontables.h:43
@ D6D_XP_ZP
Definition: directiontables.h:52
@ D6D_LEFT
Definition: directiontables.h:77
@ D6D_RIGHT
Definition: directiontables.h:74
@ D6D_YN
Definition: directiontables.h:44
@ D6D_XN_YN
Definition: directiontables.h:55
@ D6D_XP_ZN
Definition: directiontables.h:54
@ D6D_YN_ZP
Definition: directiontables.h:57
@ D6D_XP_YP
Definition: directiontables.h:48
@ D6D_XP_YN
Definition: directiontables.h:56
@ D6D_XP_YN_ZP
Definition: directiontables.h:65
@ D6D_XP_YP_ZN
Definition: directiontables.h:63
@ D6D_XP_YP_ZP
Definition: directiontables.h:61
@ D6D_XN_YN_ZP
Definition: directiontables.h:64
@ D6D_XN_YP_ZN
Definition: directiontables.h:62
@ D6D_XN_YN_ZN
Definition: directiontables.h:66
@ D6D_YP_ZN
Definition: directiontables.h:50
@ D6D_XN_ZP
Definition: directiontables.h:51
@ D6D_YP
Definition: directiontables.h:41
@ D6D_XN
Definition: directiontables.h:45
@ D6D
Definition: directiontables.h:69
@ D6D_YN_ZN
Definition: directiontables.h:58
@ D6D_BOTTOM
Definition: directiontables.h:76
@ D6D_XN_YP
Definition: directiontables.h:47
@ D6D_BACK
Definition: directiontables.h:72
@ D6D_XP_YN_ZN
Definition: directiontables.h:67
@ D6D_YP_ZP
Definition: directiontables.h:49
@ D6D_FRONT
Definition: directiontables.h:75
@ D6D_TOP
Definition: directiontables.h:73
const v3s16 g_27dirs[27]
Definition: directiontables.cpp:78
const v3s16 g_6dirs[6]
Definition: directiontables.cpp:22
const v3s16 g_7dirs[7]
Definition: directiontables.cpp:33
DirectionWallmounted
Direction in the wallmounted format.
Definition: directiontables.h:82
@ DWM_XP
Definition: directiontables.h:85
@ DWM_YN
Definition: directiontables.h:84
@ DWM_YP
Definition: directiontables.h:83
@ DWM_ZP
Definition: directiontables.h:87
@ DWM_XN
Definition: directiontables.h:86
@ DWM_ZN
Definition: directiontables.h:88
const u8 wallmounted_to_facedir[6]
Definition: directiontables.cpp:113
const v3s16 g_26dirs[26]
Definition: directiontables.cpp:44
core::vector3d< s16 > v3s16
Definition: irr_v3d.h:28