Overte C++ Documentation
RenderHifi.h
1 //
2 // RenderHifi.h
3 // libraries/render-utils/src
4 //
5 // Created by Sam Gateau on 5/30/2018.
6 // Copyright 2018 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 #ifndef hifi_RenderHifi_h
12 #define hifi_RenderHifi_h
13 
14 #include <render/Item.h>
15 
16 
17 
18 // In the library render-utils we are specializing the generic components of the render library to create the custom hifi render engine
19 // Objects and types serving this goal are define in the namespace render.hifi
20 // TODO: extend the namespace to all the classes where it make sense in render-utils
21 namespace render {
22  namespace hifi {
23 
24  // Tag is the alias names of render::ItemKey::Tag combinations used in the Hifi Render Engine
25  enum Tag : uint8_t {
26  TAG_NONE = render::ItemKey::TAG_BITS_NONE, // No Tags at all
27  TAG_MAIN_VIEW = render::ItemKey::TAG_BITS_0, // Main view
28  TAG_SECONDARY_VIEW = render::ItemKey::TAG_BITS_1, // Secondary View
29  TAG_ALL_VIEWS = TAG_MAIN_VIEW | TAG_SECONDARY_VIEW, // All views
30  };
31 
32  // Layer is the alias names of the render::ItemKey::Layer used in the Hifi Render Engine
33  enum Layer : uint8_t {
34  LAYER_3D = render::ItemKey::LAYER_DEFAULT,
35  LAYER_3D_FRONT = render::ItemKey::LAYER_1,
36  LAYER_3D_HUD = render::ItemKey::LAYER_2,
37  LAYER_2D = render::ItemKey::LAYER_3,
38  LAYER_BACKGROUND = render::ItemKey::LAYER_BACKGROUND,
39  };
40  }
41 }
42 
43 #endif // hifi_RenderHifi_h