Skip to content

Commit

Permalink
reverted more unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
codex128 committed Aug 2, 2024
1 parent 951361c commit 3e7f623
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public AccessHint getAccessHint() {
/**
* Set AccessHint to hint the renderer on how to access this data.
*
* @param accessHint
* @param natureHint
*/
public void setAccessHint(AccessHint accessHint) {
this.accessHint = accessHint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected ObjectSerializer<?> getSerializer(Object obj) {
/**
* Register a serializer
*
* @param serializer
* @param type
*/
protected void registerSerializer(ObjectSerializer<?> serializer) {
serializers.add(serializer);
Expand Down
25 changes: 24 additions & 1 deletion jme3-core/src/main/java/com/jme3/texture/FrameBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ public int getLayer() {
return this.layer;
}
}


public static class FrameBufferTextureTarget extends RenderBuffer {
private FrameBufferTextureTarget(){}
Expand Down Expand Up @@ -250,12 +249,36 @@ public static FrameBufferTextureTarget newTarget(Texture tx, TextureCubeMap.Face
}
}

/**
* Quick access method for creating a texture target.
*
* @param tx
* @return
* @see FrameBufferTarget#newTarget(com.jme3.texture.Texture)
*/
public static FrameBufferTextureTarget target(Texture tx) {
return FrameBufferTarget.newTarget(tx);
}

/**
* Quick access method for creating a buffer target of the specified format.
*
* @param format
* @return
* @see FrameBufferTarget#newTarget(com.jme3.texture.Image.Format)
*/
public static FrameBufferBufferTarget target(Format format) {
return FrameBufferTarget.newTarget(format);
}

/**
* Quick access method for creating a texture target on the specified cubemap face.
*
* @param tx
* @param face
* @return
* @see FrameBufferTarget#newTarget(com.jme3.texture.Texture, com.jme3.texture.TextureCubeMap.Face)
*/
public static FrameBufferTextureTarget target(Texture tx, TextureCubeMap.Face face) {
return FrameBufferTarget.newTarget(tx, face);
}
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/texture/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ public Image clone(){
*/
public Image() {
super();
data = new ArrayList<>(1);
data = new ArrayList<ByteBuffer>(1);
}

protected Image(int id){
Expand Down Expand Up @@ -837,7 +837,7 @@ public Image(Format format, int width, int height, ByteBuffer data,
this.width = width;
this.height = height;
if (data != null){
this.data = new ArrayList<>(1);
this.data = new ArrayList<ByteBuffer>(1);
this.data.add(data);
}
this.mipMapSizes = mipMapSizes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ public class StructStd140BufferObject extends BufferObject {
private final Std140Layout std140 = new Std140Layout();

/**
* Create an empty Struct buffer.
* Create an empty Struct buffer
*
* @param str
*/
public StructStd140BufferObject() {
}

/**
* Internal only.
*
* @param id
* Internal only
*/
public StructStd140BufferObject(int id) {
super(id);
Expand Down

0 comments on commit 3e7f623

Please sign in to comment.