Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
directiontables.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include "irrlichttypes.h"
8#include "irr_v3d.h"
9
53
57 // The 6 wallmounted directions
64 // There are 6 wallmounted directions, but 8 possible states (3 bits).
65 // So we have 2 additional states, which drawtypes might use for
66 // special ("S") behavior.
70};
71
72extern const v3s16 g_6dirs[6];
73
74extern const v3s16 g_7dirs[7];
75
76extern const v3s16 g_26dirs[26];
77
78// 26th is (0,0,0)
79extern const v3s16 g_27dirs[27];
80
81extern const u8 wallmounted_to_facedir[DWM_COUNT];
82
83extern const v3s16 wallmounted_dirs[DWM_COUNT];
84
85extern const v3s16 facedir_dirs[32];
86
87extern const v3s16 fourdir_dirs[4];
Direction6D
Direction in the 6D format.
Definition directiontables.h:12
@ D6D_XP
Definition directiontables.h:16
@ D6D_XN_ZN
Definition directiontables.h:27
@ D6D_ZP
Definition directiontables.h:14
@ D6D_XN_YP_ZP
Definition directiontables.h:34
@ D6D_ZN
Definition directiontables.h:17
@ D6D_XP_ZP
Definition directiontables.h:26
@ D6D_LEFT
Definition directiontables.h:51
@ D6D_RIGHT
Definition directiontables.h:48
@ D6D_YN
Definition directiontables.h:18
@ D6D_XN_YN
Definition directiontables.h:29
@ D6D_XP_ZN
Definition directiontables.h:28
@ D6D_YN_ZP
Definition directiontables.h:31
@ D6D_XP_YP
Definition directiontables.h:22
@ D6D_XP_YN
Definition directiontables.h:30
@ D6D_XP_YN_ZP
Definition directiontables.h:39
@ D6D_XP_YP_ZN
Definition directiontables.h:37
@ D6D_XP_YP_ZP
Definition directiontables.h:35
@ D6D_XN_YN_ZP
Definition directiontables.h:38
@ D6D_XN_YP_ZN
Definition directiontables.h:36
@ D6D_XN_YN_ZN
Definition directiontables.h:40
@ D6D_YP_ZN
Definition directiontables.h:24
@ D6D_XN_ZP
Definition directiontables.h:25
@ D6D_YP
Definition directiontables.h:15
@ D6D_XN
Definition directiontables.h:19
@ D6D
Definition directiontables.h:43
@ D6D_YN_ZN
Definition directiontables.h:32
@ D6D_BOTTOM
Definition directiontables.h:50
@ D6D_XN_YP
Definition directiontables.h:21
@ D6D_BACK
Definition directiontables.h:46
@ D6D_XP_YN_ZN
Definition directiontables.h:41
@ D6D_YP_ZP
Definition directiontables.h:23
@ D6D_FRONT
Definition directiontables.h:49
@ D6D_TOP
Definition directiontables.h:47
const v3s16 facedir_dirs[32]
Definition directiontables.cpp:118
const v3s16 g_27dirs[27]
Definition directiontables.cpp:63
const v3s16 g_6dirs[6]
Definition directiontables.cpp:7
const v3s16 g_7dirs[7]
Definition directiontables.cpp:18
const v3s16 fourdir_dirs[4]
Definition directiontables.cpp:151
const v3s16 wallmounted_dirs[DWM_COUNT]
Definition directiontables.cpp:109
DirectionWallmounted
Direction in the wallmounted format.
Definition directiontables.h:56
@ DWM_XP
Definition directiontables.h:60
@ DWM_YN
Definition directiontables.h:59
@ DWM_YP
Definition directiontables.h:58
@ DWM_ZP
Definition directiontables.h:62
@ DWM_XN
Definition directiontables.h:61
@ DWM_S1
Definition directiontables.h:67
@ DWM_S2
Definition directiontables.h:68
@ DWM_ZN
Definition directiontables.h:63
@ DWM_COUNT
Definition directiontables.h:69
const u8 wallmounted_to_facedir[DWM_COUNT]
Definition directiontables.cpp:98
const v3s16 g_26dirs[26]
Definition directiontables.cpp:29
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13