@Environment(value=CLIENT) public class GlShader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GlShader.Type |
Modifier and Type | Field and Description |
---|---|
private String |
name |
private int |
refCount |
private int |
shaderRef |
private GlShader.Type |
shaderType |
Modifier | Constructor and Description |
---|---|
private |
GlShader(GlShader.Type shaderType,
int shaderRef,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(GlProgram glProgram) |
static GlShader |
createFromResource(GlShader.Type type,
String name,
InputStream sourceCode,
String string) |
String |
getName() |
void |
release() |
private final GlShader.Type shaderType
private final String name
private final int shaderRef
private int refCount
private GlShader(GlShader.Type shaderType, int shaderRef, String name)
public void attachTo(GlProgram glProgram)
public void release()
public String getName()
public static GlShader createFromResource(GlShader.Type type, String name, InputStream sourceCode, String string) throws IOException
IOException