public class UniformBufferObject extends BufferObject
| Modifier and Type | Method and Description |
|---|---|
UniformBufferObject |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
bindLocation(com.jogamp.opengl.GL3 gl,
int program,
int location) |
void |
dispose(com.jogamp.opengl.GL3 gl)
Should be called to safely free memory before discarding
|
static UniformBufferObject |
generate(com.jogamp.opengl.GL3 gl,
int progId,
java.lang.String blockName,
java.lang.String[] attributes,
int usage) |
java.lang.String |
getAttribute(int attribId) |
java.lang.String |
getBlockName() |
java.nio.ByteBuffer |
getBuffer() |
int |
getByteOffset(int attribId) |
int |
getSize() |
int |
numAttributes() |
void |
set(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer data) |
void |
update(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer data) |
void |
update(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer data,
int offset,
int size) |
allocate, bind, fill, fill, fill, flushBufferRange, generate, getId, getUsage, isDisposed, mapBuffer, mapBufferRange, mapNewBuffer, unbind, unmapBuffer, updatedispose, disposeInvalid, disposeInvalid, disposeUnreferenced, disposeUnreferenced, releaseDispose, releaseDisposeisValidacquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidacquireAndCount, getReferenceCount, release, releaseAndCountpublic java.lang.String getBlockName()
public int getByteOffset(int attribId)
public java.lang.String getAttribute(int attribId)
public int numAttributes()
public int getSize()
getSize in class BufferObjectpublic void bindLocation(com.jogamp.opengl.GL3 gl,
int program,
int location)
public void set(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer data)
public void update(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer data)
update in class BufferObjectpublic void update(com.jogamp.opengl.GL3 gl,
java.nio.ByteBuffer data,
int offset,
int size)
update in class BufferObjectpublic java.nio.ByteBuffer getBuffer()
public void dispose(com.jogamp.opengl.GL3 gl)
dispose in interface GL3Resourcedispose in class BufferObjectgl - active contextpublic UniformBufferObject acquire()
ReferenceCountedacquire in interface GL3Resourceacquire in interface GLResourceacquire in interface ReferenceCountedacquire in class BufferObjectpublic static UniformBufferObject generate(com.jogamp.opengl.GL3 gl, int progId, java.lang.String blockName, java.lang.String[] attributes, int usage)