diff --git a/interface/src/scripting/RenderScriptingInterface.h b/interface/src/scripting/RenderScriptingInterface.h
index 9b96448c9d..a514241126 100644
--- a/interface/src/scripting/RenderScriptingInterface.h
+++ b/interface/src/scripting/RenderScriptingInterface.h
@@ -15,13 +15,20 @@
#include "RenderForward.h"
/**jsdoc
- * The Render
API allows you to configure the graphics engine
+ * The Render
API enables you to configure the graphics engine.
*
* @namespace Render
*
* @hifi-interface
* @hifi-client-entity
* @hifi-avatar
+ *
+ * @property {Render.RenderMethod} renderMethod - The render method being used.
+ * @property {boolean} shadowsEnabled - true
if shadows are enabled, false
if they're disabled.
+ * @property {boolean} ambientOcclusionEnabled - {boolean} true
if ambient occlusion is enabled,
+ * false
if it's disabled.
+ * @property {boolean} antialiasingEnabled - true
if anti-aliasing is enabled, false
if it's disabled.
+ * @property {number} viewportResolutionScale - The view port resolution scale, > 0.0
.
*/
class RenderScriptingInterface : public QObject {
Q_OBJECT
@@ -36,6 +43,21 @@ public:
static RenderScriptingInterface* getInstance();
+ /**jsdoc
+ *
The rendering method is specified by the following values:
+ *Value | Name | Description | + *
---|---|---|
0 | DEFERRED | More complex rendering pipeline where lighting is applied to the + * scene as a whole after all objects have been rendered. |
1 | FORWARD | Simpler rendering pipeline where each object in the scene, in turn, + * is rendered and has lighting applied. |
Warning: For internal, debugging purposes. Subject to change.
* @function Render.getConfig - * @param {string} name - Can be: - * -"DEFERRED"
or "FORWARD"
+ * @returns {Render.RenderMethod} The render method being used.
+ * @example "DEFERRED"
or "FORWARD"
+ * @param {Render.RenderMethod} renderMethod - The render method to use.
*/
void setRenderMethod(RenderMethod renderMethod);
/**jsdoc
- * Gets the possible enum names of the RenderMethod type
- * @function Render.getRenderMethodNames
- * @returns [string] [ "DEFERRED"
, "FORWARD"
]
- */
+ * Gets the names of the possible render methods, per {@link Render.RenderMethod}.
+ * @function Render.getRenderMethodNames
+ * @returns {string[]} The names of the possible render methods.
+ * @example true
if shadows are enabled, otherwise false
+ * @returns {boolean} true
if shadows are enabled, false
if they're disabled.
*/
bool getShadowsEnabled() const;
/**jsdoc
- * Enables or disables shadows
+ * Sets whether or not shadows are enabled.
* @function Render.setShadowsEnabled
- * @param {bool} enabled - true
to enable shadows, false
to disable them
+ * @param {boolean} enabled - true
to enable shadows, false
to disable.
*/
void setShadowsEnabled(bool enabled);
/**jsdoc
- * Whether or not ambient occlusion is enabled
+ * Gets whether or not ambient occlusion is enabled.
* @function Render.getAmbientOcclusionEnabled
- * @returns {bool} true
if ambient occlusion is enabled, otherwise false
+ * @returns {boolean} true
if ambient occlusion is enabled, false
if it's disabled.
*/
bool getAmbientOcclusionEnabled() const;
/**jsdoc
- * Enables or disables ambient occlusion
+ * Sets whether or not ambient occlusion is enabled.
* @function Render.setAmbientOcclusionEnabled
- * @param {bool} enabled - true
to enable ambient occlusion, false
to disable it
+ * @param {boolean} enabled - true
to enable ambient occlusion, false
to disable.
*/
void setAmbientOcclusionEnabled(bool enabled);
/**jsdoc
- * Whether or not anti-aliasing is enabled
+ * Gets whether or not anti-aliasing is enabled.
* @function Render.getAntialiasingEnabled
- * @returns {bool} true
if anti-aliasing is enabled, otherwise false
+ * @returns {boolean} true
if anti-aliasing is enabled, false
if it's disabled.
*/
bool getAntialiasingEnabled() const;
/**jsdoc
- * Enables or disables anti-aliasing
+ * Sets whether or not anti-aliasing is enabled.
* @function Render.setAntialiasingEnabled
- * @param {bool} enabled - true
to enable anti-aliasing, false
to disable it
+ * @param {boolean} enabled - true
to enable anti-aliasing, false
to disable.
*/
void setAntialiasingEnabled(bool enabled);
/**jsdoc
- * Gets the current viewport resolution scale
+ * Gets the view port resolution scale.
* @function Render.getViewportResolutionScale
- * @returns {number}
+ * @returns {number} The view port resolution scale, > 0.0
.
*/
float getViewportResolutionScale() const;
/**jsdoc
- * Sets the current viewport resolution scale
+ * Sets the view port resolution scale.
* @function Render.setViewportResolutionScale
- * @param {number} resolutionScale - between epsilon and 1.0
+ * @param {number} resolutionScale - The view port resolution scale to set, > 0.0
.
*/
void setViewportResolutionScale(float resolutionScale);
signals:
+
+ /**jsdoc
+ * Triggered when one of the Render
API's properties changes.
+ * @function Render.settingsChanged
+ * @returns {Signal}
+ * @example