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 
26 public:
27  typedef render::Payload<WorldBoxRenderData> Payload;
28  typedef Payload::DataPointer Pointer;
29 
33  static render::ItemID _item; // unique WorldBoxRenderData
34 
40  static void renderWorldBox(RenderArgs* args, gpu::Batch& batch);
41 };
42 
43 namespace render {
48  template <> const ItemKey payloadGetKey(const WorldBoxRenderData::Pointer& stuff);
49 
57  template <> const Item::Bound payloadGetBound(const WorldBoxRenderData::Pointer& stuff, RenderArgs* args);
58 
64 template <> void payloadRender(const WorldBoxRenderData::Pointer& stuff, RenderArgs* args);
65 }
66 
67 #endif // hifi_WorldBox_h
Definition: WorldBox.h:25
static render::ItemID _item
Definition: WorldBox.h:33
static void renderWorldBox(RenderArgs *args, gpu::Batch &batch)
Definition: WorldBox.cpp:31
Definition: Args.h:100