Skip to content

Commit

Permalink
Dumper: add a dump() method for lights
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 17, 2023
1 parent 14d7d14 commit 930190b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions HeartLibrary/src/main/java/jme3utilities/debug/Dumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
import com.jme3.audio.AudioNode;
import com.jme3.bounding.BoundingVolume;
import com.jme3.font.BitmapText;
import com.jme3.light.Light;
import com.jme3.light.LightList;
import com.jme3.material.MatParam;
import com.jme3.material.Material;
Expand Down Expand Up @@ -290,6 +291,20 @@ public void dump(Camera camera, String indent) {
}
}

/**
* Dump the specified Light, with indentation.
*
* @param light (not null, unaffected)
* @param indent the indent text (not null, may be empty)
*/
public void dump(Light light, String indent) {
Validate.nonNull(light, "light");

stream.print(indent);
String description = describer.describe(light);
stream.print(description);
}

/**
* Dump the specified list of scenes.
*
Expand Down

0 comments on commit 930190b

Please sign in to comment.