public class ShaderProgram extends java.lang.Object implements RenderResource
setProgramSources
to specify the the GLSL vertex
shader and fragment shader source code, then made current by calling useProgram
.Constructor and Description |
---|
ShaderProgram() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAttribBindings() |
int |
getProgramLength() |
java.lang.String[] |
getProgramSources() |
void |
release(DrawContext dc)
Frees any resources associated with this instance.
|
void |
setAttribBindings(java.lang.String... attribBindings) |
void |
setProgramSources(java.lang.String... programSources) |
boolean |
useProgram(DrawContext dc) |
public java.lang.String[] getProgramSources()
public void setProgramSources(java.lang.String... programSources)
public java.lang.String[] getAttribBindings()
public void setAttribBindings(java.lang.String... attribBindings)
public int getProgramLength()
public void release(DrawContext dc)
RenderResource
release
in interface RenderResource
dc
- the current draw contextpublic boolean useProgram(DrawContext dc)