Skip to content

Commit 716be73

Browse files
committed
nifty: comments and whitespace
1 parent 940f09f commit 716be73

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

nifty/src/main/java/com/jme3/cinematic/events/GuiEvent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public class GuiEvent extends AbstractCinematicEvent {
7070
// constructors
7171

7272
/**
73-
* No-argument constructor needed by SavableClassUtil.
73+
* No-argument constructor needed by SavableClassUtil. Do not invoke
74+
* directly!
7475
*/
7576
protected GuiEvent() {
7677
}

nifty/src/main/java/com/jme3/niftygui/RenderDeviceJme.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public RenderDeviceJme(NiftyJmeDisplay display, boolean colorsAsSrgb) {
128128

129129
// Load the 3 material types separately to avoid
130130
// reloading the shader when the defines change.
131+
131132
// Material with a single color (no texture or vertex color)
132133
colorMaterial = new Material(display.getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md");
133134

@@ -374,10 +375,10 @@ public void renderImage(RenderImage image, int x, int y, int width, int height,
374375
@Override
375376
public void renderQuad(int x, int y, int width, int height, Color color) {
376377
//We test for alpha >0 as an optimization to prevent the render of completely transparent quads.
377-
//Nifty use layers that are often used for logical positioning and not rendering.
378+
//Nifty layers are often used for logical positioning and not rendering.
378379
//each layer is rendered as a quad, but that can bump up the number of geometry rendered by a lot.
379380
//Since we disable depth write, there is absolutely no point in rendering those quads
380-
//This optimization can result in a huge increase in performance on complex Nifty UIs.
381+
//This optimization can result in a huge performance increase on complex Nifty UIs.
381382
if (color.getAlpha() > 0) {
382383
colorMaterial.setColor("Color", convertColor(color, tempColor));
383384

nifty/src/main/java/com/jme3/niftygui/RenderFontJme.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class RenderFontJme implements RenderFont {
4545
* Initialize the font.
4646
*
4747
* @param name font filename
48-
* @param display unused
48+
* @param display (not null)
4949
*/
5050
public RenderFontJme(String name, NiftyJmeDisplay display) {
5151
font = display.getAssetManager().loadFont(name);

0 commit comments

Comments
 (0)