1 #ifndef __GNUC__
2 #pragma once
3 #endif
4 #ifndef __XR_SHAPE_H__
5 #define __XR_SHAPE_H__
6 
7 #include <vector>
8 #include "xr_types.h"
9 #include "xr_sphere.h"
10 #include "xr_matrix.h"
11 
12 namespace xray_re {
13 
14 enum {
15 	SHAPE_SPHERE	= 0,
16 	SHAPE_BOX	= 1,
17 };
18 
19 struct shape_def {
20 	uint8_t		type;
21 	union {
22 		fsphere	sphere;
23 		fmatrix	box;
24 	};
25 };
26 
27 TYPEDEF_STD_VECTOR(shape_def)
28 
29 } // end of namespace xray_re
30 
31 #endif
32