All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
VertexElementFlags.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 
7 namespace Eegeo
8 {
9  namespace IO
10  {
11  namespace ChunkedFileFormat
12  {
13  namespace VertexElementFlags
14  {
15  // make sure this marries up with the compiler VertexElementFlags.
16  // We should probably have a separate serialization value that is kept in sync.
17  static const u16 POSITION = 1 << 0;
18  static const u16 SHADOW_EXTRUSIONS = 1 << 1;
19  static const u16 NORMAL = 1 << 2;
20  static const u16 UV = 1 << 3;
21  static const u16 LIGHTDOTS = 1 << 4;
22  static const u16 UV2 = 1 << 5;
23  static const u16 COLOR = 1 << 6;
24 
25  static const u16 POSITION_NORMAL = (POSITION | NORMAL);
26  static const u16 POSITION_NORMAL_UV = (POSITION | NORMAL | UV);
27  static const u16 POSITION_NORMAL_UV_COLOR = (POSITION | NORMAL | UV | COLOR);
28  static const u16 POSITION_UV_LIGHTDOTS = (POSITION | UV | LIGHTDOTS);
29  static const u16 POSITION_SHADOW_EXTRUSIONS = (POSITION | SHADOW_EXTRUSIONS);
30  static const u16 POSITION_UV_LIGHTDOTS_COLOR = (POSITION | UV | LIGHTDOTS | COLOR);
31 
32  }
33  }
34  }
35 }