Package net.minecraft.client.gl
Class GlShader
java.lang.Object
net.minecraft.client.gl.GlShader
@Environment(CLIENT) public class GlShader extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlShader.Type
-
Field Summary
Fields Modifier and Type Field Description private String
name
private int
refCount
private int
shaderRef
private GlShader.Type
shaderType
-
Constructor Summary
Constructors Modifier Constructor Description private
GlShader(GlShader.Type shaderType, int shaderRef, String name)
-
Method Summary
Modifier and Type Method Description void
attachTo(GlProgram glProgram)
static GlShader
createFromResource(GlShader.Type type, String name, InputStream sourceCode, String string)
String
getName()
void
release()
-
Field Details
-
shaderType
-
name
-
shaderRef
private final int shaderRef -
refCount
private int refCount
-
-
Constructor Details
-
GlShader
-
-
Method Details
-
attachTo
-
release
public void release() -
getName
-
createFromResource
public static GlShader createFromResource(GlShader.Type type, String name, InputStream sourceCode, String string) throws IOException- Throws:
IOException
-