public class GLShaderProgram extends GLResourceBase
Constructor and Description |
---|
GLShaderProgram(int id) |
Modifier and Type | Method and Description |
---|---|
GLResourceBase |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
dispose(com.jogamp.opengl.GL gl)
Discard data, regardless of existing references
|
int |
getAttributeLocation(com.jogamp.opengl.GL2GL3 gl,
java.lang.String name) |
int |
getId() |
int |
getSamplerIndex(com.jogamp.opengl.GL2GL3 gl,
java.lang.String name) |
int |
getUniformBlockIndex(com.jogamp.opengl.GL2GL3 gl,
java.lang.String name) |
int |
getUniformLocation(com.jogamp.opengl.GL2GL3 gl,
java.lang.String name) |
boolean |
isDisposed()
Returns true if resource has been disposed
|
void |
unuse(com.jogamp.opengl.GL2GL3 gl) |
void |
use(com.jogamp.opengl.GL2GL3 gl) |
disposeInvalid, disposeUnreferenced, isValid, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndCount, getReferenceCount, release, releaseAndCount
public int getId()
public int getAttributeLocation(com.jogamp.opengl.GL2GL3 gl, java.lang.String name)
public int getUniformLocation(com.jogamp.opengl.GL2GL3 gl, java.lang.String name)
public int getUniformBlockIndex(com.jogamp.opengl.GL2GL3 gl, java.lang.String name)
public int getSamplerIndex(com.jogamp.opengl.GL2GL3 gl, java.lang.String name)
public void use(com.jogamp.opengl.GL2GL3 gl)
public void unuse(com.jogamp.opengl.GL2GL3 gl)
public GLResourceBase acquire()
ReferenceCounted
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GLResourceBase
public void dispose(com.jogamp.opengl.GL gl)
GLResource
dispose
in interface GLResource
dispose
in class GLResourceBase
public boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase