From 2648f67b34cb64db0c06cfc8768f30722f19fd20 Mon Sep 17 00:00:00 2001 From: Nehon Date: Thu, 26 Nov 2015 20:47:44 +0100 Subject: [PATCH] Javadoc in RenderManager : Fixed some typos and added some for light mode methods. --- .../java/com/jme3/renderer/RenderManager.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java b/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java index b6ad6ace4..f45013e84 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java +++ b/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java @@ -746,27 +746,43 @@ public class RenderManager { } /** - * Sets the light filter to use when rendering Lighted Geometries + * Sets the light filter to use when rendering lighted Geometries * * @see LightFilter - * @param lightFilter The light filter tose. Set it to null if you want all lights to be rendered + * @param lightFilter The light filter. Set it to null if you want all lights to be rendered */ public void setLightFilter(LightFilter lightFilter) { this.lightFilter = lightFilter; } + /** + * Defines what light mode will be selected when a technique offers several light modes + * @param preferredLightMode + */ public void setPreferredLightMode(TechniqueDef.LightMode preferredLightMode) { this.preferredLightMode = preferredLightMode; } + /** + * returns the preferred light mode + * @return the light mode + */ public TechniqueDef.LightMode getPreferredLightMode() { return preferredLightMode; } + /** + * returns the number of lights used for each pass when the light mode is single pass. + * @return the number of lights. + */ public int getSinglePassLightBatchSize() { return singlePassLightBatchSize; } + /** + * Sets the number of lights to use for each pass when the light mode is single pass. + * @param singlePassLightBatchSize the number of lights + */ public void setSinglePassLightBatchSize(int singlePassLightBatchSize) { this.singlePassLightBatchSize = singlePassLightBatchSize; }