Pol  Revision:f37d500
mapsolid.h
Go to the documentation of this file.
1 
10 #ifndef PLIB_MAPBLOB_H
11 #define PLIB_MAPBLOB_H
12 
13 #define SOLIDX_X_SIZE 16
14 #define SOLIDX_X_SHIFT 4
15 #define SOLIDX_X_CELLMASK 0xF
16 
17 #define SOLIDX_Y_SIZE 16
18 #define SOLIDX_Y_SHIFT 4
19 #define SOLIDX_Y_CELLMASK 0xF
20 namespace Pol
21 {
22 namespace Plib
23 {
24 struct SOLIDX1_ELEM
25 {
26  unsigned int offset;
27 };
28 
29 const unsigned SOLIDX2_FILLER_SIZE = 4;
30 
31 struct SOLIDX2_ELEM
32 {
33  unsigned int baseindex;
34  unsigned short addindex[SOLIDX_X_SIZE][SOLIDX_Y_SIZE];
35 };
36 static_assert( sizeof( SOLIDX2_ELEM ) == 516, "size missmatch" );
37 
38 struct SOLIDS_ELEM
39 {
40  signed char z;
41  unsigned char height;
42  unsigned char flags;
43 };
44 static_assert( sizeof( SOLIDS_ELEM ) == 3, "size missmatch" );
45 }
46 }
47 #endif
unsigned int offset
Definition: mapblob.h:24
#define SOLIDX_Y_SIZE
Definition: mapsolid.h:17
#define SOLIDX_X_SIZE
Definition: mapsolid.h:13
const unsigned SOLIDX2_FILLER_SIZE
Definition: mapblob.h:43
Definition: berror.cpp:12