Overte C++ Documentation
PrimitiveMode.h
1 //
2 // Created by Sam Gondelman on 1/7/19.
3 // Copyright 2019 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #ifndef hifi_PrimitiveMode_h
10 #define hifi_PrimitiveMode_h
11 
12 #include "QString"
13 
14 /*@jsdoc
15  * <p>How the geometry of an entity is rendered.</p>
16  * <table>
17  * <thead>
18  * <tr><th>Value</th><th>Description</th></tr>
19  * </thead>
20  * <tbody>
21  * <tr><td><code>"solid"</code></td><td>The entity is drawn as a solid shape.</td></tr>
22  * <tr><td><code>"lines"</code></td><td>The entity is drawn as wireframe.</td></tr>
23  * </tbody>
24  * </table>
25  * @typedef {string} Entities.PrimitiveMode
26  */
27 
28 enum class PrimitiveMode {
29  SOLID = 0,
30  LINES
31 };
32 
33 class PrimitiveModeHelpers {
34 public:
35  static QString getNameForPrimitiveMode(PrimitiveMode mode);
36 };
37 
38 #endif // hifi_PrimitiveMode_h
39