aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/lldefs.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:59 -0500
committerJacek Antonelli2008-08-15 23:44:59 -0500
commita408bac29378072fbf36864164149458c978cfcc (patch)
tree67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/llcommon/lldefs.h
parentSecond Life viewer sources 1.17.0.12 (diff)
downloadmeta-impy-a408bac29378072fbf36864164149458c978cfcc.zip
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz
Second Life viewer sources 1.17.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/lldefs.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/linden/indra/llcommon/lldefs.h b/linden/indra/llcommon/lldefs.h
index a3651ff..25f4e73 100644
--- a/linden/indra/llcommon/lldefs.h
+++ b/linden/indra/llcommon/lldefs.h
@@ -55,13 +55,15 @@ const U32 SOUTHWEST = 6;
55const U32 SOUTHEAST = 7; 55const U32 SOUTHEAST = 7;
56const U32 MIDDLE = 8; 56const U32 MIDDLE = 8;
57 57
58const U8 LL_SOUND_FLAG_NONE = 0x00; 58const U8 EAST_MASK = 0x1<<EAST;
59const U8 LL_SOUND_FLAG_LOOP = 0x01; 59const U8 NORTH_MASK = 0x1<<NORTH;
60const U8 LL_SOUND_FLAG_SYNC_MASTER = 0x02; 60const U8 WEST_MASK = 0x1<<WEST;
61const U8 LL_SOUND_FLAG_SYNC_SLAVE = 0x04; 61const U8 SOUTH_MASK = 0x1<<SOUTH;
62const U8 LL_SOUND_FLAG_SYNC_PENDING = 0x08; 62
63const U8 LL_SOUND_FLAG_SYNC_MASK = LL_SOUND_FLAG_SYNC_MASTER | LL_SOUND_FLAG_SYNC_SLAVE | LL_SOUND_FLAG_SYNC_PENDING; 63const U8 NORTHEAST_MASK = NORTH_MASK | EAST_MASK;
64const U8 LL_SOUND_FLAG_QUEUE = 0x10; 64const U8 NORTHWEST_MASK = NORTH_MASK | WEST_MASK;
65const U8 SOUTHWEST_MASK = SOUTH_MASK | WEST_MASK;
66const U8 SOUTHEAST_MASK = SOUTH_MASK | EAST_MASK;
65 67
66const U32 gDirOpposite[8] = {2, 3, 0, 1, 6, 7, 4, 5}; 68const U32 gDirOpposite[8] = {2, 3, 0, 1, 6, 7, 4, 5};
67const U32 gDirAdjacent[8][2] = { 69const U32 gDirAdjacent[8][2] = {
@@ -87,15 +89,6 @@ const S32 gDirAxes[8][2] = {
87 { 1,-1}, // se 89 { 1,-1}, // se
88 }; 90 };
89 91
90const U8 EAST_MASK = 1;
91const U8 NORTH_MASK = 2;
92const U8 WEST_MASK = 4;
93const U8 SOUTH_MASK = 8;
94const U8 NORTHEAST_MASK = NORTH_MASK | EAST_MASK;
95const U8 NORTHWEST_MASK = NORTH_MASK | WEST_MASK;
96const U8 SOUTHWEST_MASK = SOUTH_MASK | WEST_MASK;
97const U8 SOUTHEAST_MASK = SOUTH_MASK | EAST_MASK;
98
99const S32 gDirMasks[8] = { 92const S32 gDirMasks[8] = {
100 EAST_MASK, 93 EAST_MASK,
101 NORTH_MASK, 94 NORTH_MASK,
@@ -133,6 +126,14 @@ const U32 RIGHT_SIDE = 4;
133const U32 TOP_SIDE = 5; 126const U32 TOP_SIDE = 5;
134const U32 BOTTOM_SIDE = 6; 127const U32 BOTTOM_SIDE = 6;
135 128
129const U8 LL_SOUND_FLAG_NONE = 0x0;
130const U8 LL_SOUND_FLAG_LOOP = 1<<0;
131const U8 LL_SOUND_FLAG_SYNC_MASTER = 1<<1;
132const U8 LL_SOUND_FLAG_SYNC_SLAVE = 1<<2;
133const U8 LL_SOUND_FLAG_SYNC_PENDING = 1<<3;
134const U8 LL_SOUND_FLAG_QUEUE = 1<<4;
135const U8 LL_SOUND_FLAG_STOP = 1<<5;
136const U8 LL_SOUND_FLAG_SYNC_MASK = LL_SOUND_FLAG_SYNC_MASTER | LL_SOUND_FLAG_SYNC_SLAVE | LL_SOUND_FLAG_SYNC_PENDING;
136 137
137// 138//
138// *NOTE: These values may be used as hard-coded numbers in scanf() variants. 139// *NOTE: These values may be used as hard-coded numbers in scanf() variants.