Skip to content

Commit

Permalink
JavaDoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scenemax3d authored Jan 22, 2024
1 parent aae61d3 commit 8663388
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public TextureCubeMap getEnvMap() {
}

/**
* Update the internal camera to face the given cubemap face
* and return it
* Updates the internal camera to face the given cubemap face
* and return it.
*
* @param faceId
* the id of the face (0-5)
Expand Down Expand Up @@ -218,15 +218,15 @@ public void bakeEnvironment(Spatial scene, Vector3f position, float frustumNear,
}

/**
* Starts pulling the data from the framebuffer into the texture
* Starts pulling the data from the framebuffer into the texture.
*/
protected void startPulling() {
bos.clear();
}

/**
* Pulls the data from the framebuffer into the texture Nb. mipmaps must be
* pulled sequentially on the same faceId
* pulled sequentially on the same faceId.
*
* @param fb
* the framebuffer to pull from
Expand All @@ -250,7 +250,9 @@ protected ByteBuffer pull(FrameBuffer fb, Texture env, int faceId) {
}

ByteArrayOutputStream bo = bos.get(faceId);
if (bo == null) bos.set(faceId, bo = new ByteArrayOutputStream());
if (bo == null) {
bos.set(faceId, bo = new ByteArrayOutputStream());
}
try {
byte array[] = new byte[face.limit()];
face.get(array);
Expand Down Expand Up @@ -288,4 +290,4 @@ protected int limitMips(int nbMipMaps, int baseW, int baseH, RenderManager rm) {
return nbMipMaps;
}

}
}

0 comments on commit 8663388

Please sign in to comment.