Overte C++ Documentation
WorldBox.h
1 //
2 // WorldBox.h
3 //
4 // Created by Sam Gateau on 01/07/2018.
5 // Copyright 2018 High Fidelity, Inc.
6 //
7 // Distributed under the Apache License, Version 2.0.
8 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
9 //
10 #ifndef hifi_WorldBox_h
11 #define hifi_WorldBox_h
12 
13 #include <PerfStat.h>
14 
15 #include <gpu/Batch.h>
16 #include <render/Forward.h>
17 
18 #include <render/Item.h>
19 #include <GeometryCache.h>
20 #include "Menu.h"
21 
22 class WorldBoxRenderData {
23 public:
24  typedef render::Payload<WorldBoxRenderData> Payload;
25  typedef Payload::DataPointer Pointer;
26 
27  int _val = 0;
28  static render::ItemID _item; // unique WorldBoxRenderData
29 
30  static void renderWorldBox(RenderArgs* args, gpu::Batch& batch);
31 };
32 
33 namespace render {
34  template <> const ItemKey payloadGetKey(const WorldBoxRenderData::Pointer& stuff);
35  template <> const Item::Bound payloadGetBound(const WorldBoxRenderData::Pointer& stuff, RenderArgs* args);
36  template <> void payloadRender(const WorldBoxRenderData::Pointer& stuff, RenderArgs* args);
37 }
38 
39 #endif // hifi_WorldBox_h