public class ElementArray extends GL3ResourceBase
Constructor and Description |
---|
ElementArray(IndexBufferObject ibo) |
Modifier and Type | Method and Description |
---|---|
ElementArray |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bind(com.jogamp.opengl.GL3 gl) |
int |
count() |
void |
dispose(com.jogamp.opengl.GL3 gl)
Discard data, regardless of references
|
void |
fill(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer buff,
int type,
int stride,
int count,
int size,
int usage) |
static ElementArray |
generate(com.jogamp.opengl.GL3 gl) |
boolean |
isDisposed()
Returns true if resource has been disposed
|
boolean |
isValid()
Returns true if resource can be used (i.e.
|
int |
stride() |
int |
type() |
void |
unbind(com.jogamp.opengl.GL3 gl) |
dispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndCount, getReferenceCount, release, releaseAndCount
public ElementArray(IndexBufferObject ibo)
public int count()
public int type()
public int stride()
public void fill(com.jogamp.opengl.GL3 gl, java.nio.ByteBuffer buff, int type, int stride, int count, int size, int usage)
public void bind(com.jogamp.opengl.GL3 gl)
public void unbind(com.jogamp.opengl.GL3 gl)
public boolean isValid()
GLResource
isValid
in interface GLResource
isValid
in class GLResourceBase
true
if the resource can be usedpublic void dispose(com.jogamp.opengl.GL3 gl)
GL3Resource
dispose
in interface GL3Resource
dispose
in class GL3ResourceBase
gl
- active contextpublic boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
public ElementArray acquire()
ReferenceCounted
acquire
in interface GL3Resource
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GL3ResourceBase
public static ElementArray generate(com.jogamp.opengl.GL3 gl)