Skip to content

Commit

Permalink
Add name to buffer object
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jan 21, 2024
1 parent 42630c2 commit b5a4b20
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public static enum NatureHint {

protected ByteBuffer data = null;
protected ArrayList<BufferRegion> regions = new ArrayList<BufferRegion>();
private String name;

public BufferObject() {
super();
Expand Down Expand Up @@ -373,4 +374,22 @@ public String toString() {
return sb.toString();
}

/**
* Get name of the buffer object
*
* @return the name of this buffer object, can be null
*/
public String getName() {
return name;
}

/**
* Set name for debugging purposes
*
* @param name
* the name of this buffer object
*/
public void setName(String name) {
this.name = name;
}
}

0 comments on commit b5a4b20

Please sign in to comment.