From 91671722a5fea77be4d59cfede583ab06d891805 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sat, 25 Nov 2017 16:09:54 +1300 Subject: [PATCH] Add Shape API types JSDoc --- libraries/render-utils/src/GeometryCache.cpp | 26 ++++++++++++++++++++ tools/jsdoc/plugins/hifi.js | 1 + 2 files changed, 27 insertions(+) diff --git a/libraries/render-utils/src/GeometryCache.cpp b/libraries/render-utils/src/GeometryCache.cpp index ebf0f13d97..76c354bdf8 100644 --- a/libraries/render-utils/src/GeometryCache.cpp +++ b/libraries/render-utils/src/GeometryCache.cpp @@ -74,6 +74,32 @@ static std::array MAPPING GeometryCache::Cylinder, } }; +/**jsdoc +*

{@link Entities} and {@link Overlays} may have the following geometrical shapes:

+* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +* +*
ValueDescription
LineA 1D line oriented in 3 dimensions.
TriangleA triangular prism.
QuadA 2D square oriented in 3 dimensions.
HexagonA hexagonal prism.
OctagonAn octagonal prism.
CircleA 2D circle oriented in 3 dimensions.
CubeA cube.
SphereA sphere.
TetrahedronA tetrahedron.
OctahedronAn octahedron.
DodecahedronA dodecahedron.
IcosahedronAn icosahedron.
TorusA torus. Not implemented.
ConeA cone.
CylinderA cylinder.
+* @typedef {string} Shape +*/ static const std::array GEOCACHE_SHAPE_STRINGS{ { "Line", "Triangle", diff --git a/tools/jsdoc/plugins/hifi.js b/tools/jsdoc/plugins/hifi.js index 9818f70f6a..ce691126d8 100644 --- a/tools/jsdoc/plugins/hifi.js +++ b/tools/jsdoc/plugins/hifi.js @@ -23,6 +23,7 @@ exports.handlers = { '../../libraries/controllers/src/controllers/', '../../libraries/entities/src', '../../libraries/networking/src', + '../../libraries/render-utils/src', '../../libraries/shared/src', '../../libraries/shared/src/shared', '../../libraries/script-engine/src',