Skip to content

Commit b5a4b20

Browse files
committed
Add name to buffer object
1 parent 42630c2 commit b5a4b20

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

jme3-core/src/main/java/com/jme3/shader/bufferobject/BufferObject.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public static enum NatureHint {
106106

107107
protected ByteBuffer data = null;
108108
protected ArrayList<BufferRegion> regions = new ArrayList<BufferRegion>();
109+
private String name;
109110

110111
public BufferObject() {
111112
super();
@@ -373,4 +374,22 @@ public String toString() {
373374
return sb.toString();
374375
}
375376

377+
/**
378+
* Get name of the buffer object
379+
*
380+
* @return the name of this buffer object, can be null
381+
*/
382+
public String getName() {
383+
return name;
384+
}
385+
386+
/**
387+
* Set name for debugging purposes
388+
*
389+
* @param name
390+
* the name of this buffer object
391+
*/
392+
public void setName(String name) {
393+
this.name = name;
394+
}
376395
}

0 commit comments

Comments
 (0)