Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
directiontables.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation; either version 2.1 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License along
16with this program; if not, write to the Free Software Foundation, Inc.,
1751 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
68
72 // The 6 wallmounted directions
79 // There are 6 wallmounted directions, but 8 possible states (3 bits).
80 // So we have 2 additional states, which drawtypes might use for
81 // special ("S") behavior.
85};
86
87extern const v3s16 g_6dirs[6];
88
89extern const v3s16 g_7dirs[7];
90
91extern const v3s16 g_26dirs[26];
92
93// 26th is (0,0,0)
94extern const v3s16 g_27dirs[27];
95
96extern const u8 wallmounted_to_facedir[DWM_COUNT];
97
98extern const v3s16 wallmounted_dirs[DWM_COUNT];
99
100extern const v3s16 facedir_dirs[32];
101
102extern const v3s16 fourdir_dirs[4];
Direction6D
Direction in the 6D format.
Definition directiontables.h:27
@ D6D_XP
Definition directiontables.h:31
@ D6D_XN_ZN
Definition directiontables.h:42
@ D6D_ZP
Definition directiontables.h:29
@ D6D_XN_YP_ZP
Definition directiontables.h:49
@ D6D_ZN
Definition directiontables.h:32
@ D6D_XP_ZP
Definition directiontables.h:41
@ D6D_LEFT
Definition directiontables.h:66
@ D6D_RIGHT
Definition directiontables.h:63
@ D6D_YN
Definition directiontables.h:33
@ D6D_XN_YN
Definition directiontables.h:44
@ D6D_XP_ZN
Definition directiontables.h:43
@ D6D_YN_ZP
Definition directiontables.h:46
@ D6D_XP_YP
Definition directiontables.h:37
@ D6D_XP_YN
Definition directiontables.h:45
@ D6D_XP_YN_ZP
Definition directiontables.h:54
@ D6D_XP_YP_ZN
Definition directiontables.h:52
@ D6D_XP_YP_ZP
Definition directiontables.h:50
@ D6D_XN_YN_ZP
Definition directiontables.h:53
@ D6D_XN_YP_ZN
Definition directiontables.h:51
@ D6D_XN_YN_ZN
Definition directiontables.h:55
@ D6D_YP_ZN
Definition directiontables.h:39
@ D6D_XN_ZP
Definition directiontables.h:40
@ D6D_YP
Definition directiontables.h:30
@ D6D_XN
Definition directiontables.h:34
@ D6D
Definition directiontables.h:58
@ D6D_YN_ZN
Definition directiontables.h:47
@ D6D_BOTTOM
Definition directiontables.h:65
@ D6D_XN_YP
Definition directiontables.h:36
@ D6D_BACK
Definition directiontables.h:61
@ D6D_XP_YN_ZN
Definition directiontables.h:56
@ D6D_YP_ZP
Definition directiontables.h:38
@ D6D_FRONT
Definition directiontables.h:64
@ D6D_TOP
Definition directiontables.h:62
const v3s16 facedir_dirs[32]
Definition directiontables.cpp:133
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
const v3s16 fourdir_dirs[4]
Definition directiontables.cpp:166
const v3s16 wallmounted_dirs[DWM_COUNT]
Definition directiontables.cpp:124
DirectionWallmounted
Direction in the wallmounted format.
Definition directiontables.h:71
@ DWM_XP
Definition directiontables.h:75
@ DWM_YN
Definition directiontables.h:74
@ DWM_YP
Definition directiontables.h:73
@ DWM_ZP
Definition directiontables.h:77
@ DWM_XN
Definition directiontables.h:76
@ DWM_S1
Definition directiontables.h:82
@ DWM_S2
Definition directiontables.h:83
@ DWM_ZN
Definition directiontables.h:78
@ DWM_COUNT
Definition directiontables.h:84
const u8 wallmounted_to_facedir[DWM_COUNT]
Definition directiontables.cpp:113
const v3s16 g_26dirs[26]
Definition directiontables.cpp:44
core::vector3d< s16 > v3s16
Definition irr_v3d.h:28