| Modifier and Type | Field and Description |
|---|---|
| private final HashSet | |
| private final HashSet | |
| private final int | |
| private static int | |
| private boolean | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized boolean | Returns: true if the shader was successfully added, false if compilation failed.Adds a new shader to a this non running program. |
| public synchronized boolean | |
| public synchronized void | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| private static synchronized int | |
| public synchronized ShaderCode | |
| public int | |
| public int | |
| public final synchronized boolean | Returns: true if shader program is valid, i.e. not zeroCreates the empty GL program object using |
| public boolean | |
| public synchronized boolean | Returns: true if program was successfully linked and is valid, otherwise falseLinks the shader code to the program. |
| public boolean | |
| public synchronized void | |
| public int | |
| public synchronized void | |
| public synchronized void | |
| public synchronized boolean | Returns: true if all steps are valid, shader compilation, attachment and linking; otherwise false.the to be replace Shader oldShader, final ShaderCode the new ShaderCode newShader, final PrintStream the optional verbose output stream verboseOut)Replace a shader in a program and re-links the program. |
| public StringBuilder | |
| public String | |
| public synchronized void | |
| public synchronized boolean | validateProgram(final GL2ES2 gl, final PrintStream verboseOut)
Performs |
| allShaderCode | back to summary |
|---|---|
| private final HashSet<ShaderCode> allShaderCode | |
| attachedShaderCode | back to summary |
|---|---|
| private final HashSet<ShaderCode> attachedShaderCode | |
| id | back to summary |
|---|---|
| private final int id | |
| nextID | back to summary |
|---|---|
| private static int nextID | |
| programInUse | back to summary |
|---|---|
| private boolean programInUse | |
| programLinked | back to summary |
|---|---|
| private boolean programLinked | |
| shaderProgram | back to summary |
|---|---|
| private int shaderProgram | |
| ShaderProgram | back to summary |
|---|---|
| public ShaderProgram() | |
| add | back to summary |
|---|---|
| public synchronized void add(final ShaderCode shaderCode) throws GLException Adds a new shader to this program. This command does not compile and attach the shader,
use | |
| add | back to summary |
|---|---|
| public synchronized boolean add(final GL2ES2 gl, final ShaderCode shaderCode, final PrintStream verboseOut) Adds a new shader to a this non running program. Compiles and attaches the shader, if not done yet.
| |
| contains | back to summary |
|---|---|
| public synchronized boolean contains(final ShaderCode shaderCode) | |
| destroy | back to summary |
|---|---|
| public synchronized void destroy(final GL2ES2 gl) Detaches all shader codes and deletes the program. Destroys the shader codes as well. Calls release(gl, true)
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getNextID | back to summary |
|---|---|
| private static synchronized int getNextID() | |
| getShader | back to summary |
|---|---|
| public synchronized ShaderCode getShader(final int id) Warning slow O(n) operation .. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| id | back to summary |
|---|---|
| public int id() returns the uniq shader id as an integer | |
| init | back to summary |
|---|---|
| public final synchronized boolean init(final GL2ES2 gl) Creates the empty GL program object using
| |
| inUse | back to summary |
|---|---|
| public boolean inUse() | |
| link | back to summary |
|---|---|
| public synchronized boolean link(final GL2ES2 gl, final PrintStream verboseOut) Links the shader code to the program. Compiles and attaches the shader code to the program if not done by yet Within this process, all GL resources (shader and program objects) are created if necessary.
| |
| linked | back to summary |
|---|---|
| public boolean linked() | |
| notifyNotInUse | back to summary |
|---|---|
| public synchronized void notifyNotInUse() | |
| program | back to summary |
|---|---|
| public int program() Returns the shader program name, which is non zero if valid. | |
| release | back to summary |
|---|---|
| public synchronized void release(final GL2ES2 gl) Detaches all shader codes and deletes the program, but leaves the shader code intact. Calls release(gl, false)
| |
| release | back to summary |
|---|---|
| public synchronized void release(final GL2ES2 gl, final boolean destroyShaderCode) Detaches all shader codes and deletes the program.
If | |
| replaceShader | back to summary |
|---|---|
| public synchronized boolean replaceShader(final GL2ES2 gl, final ShaderCode oldShader, final ShaderCode newShader, final PrintStream verboseOut) Replace a shader in a program and re-links the program.
| |
| toString | back to summary |
|---|---|
| public StringBuilder toString(StringBuilder sb) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| useProgram | back to summary |
|---|---|
| public synchronized void useProgram(final GL2ES2 gl, boolean on) | |
| validateProgram | back to summary |
|---|---|
| public synchronized boolean validateProgram(final GL2ES2 gl, final PrintStream verboseOut) Performs | |