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 classGlShader.Type -
Field Summary
Fields Modifier and Type Field Description private Stringnameprivate intrefCountprivate intshaderRefprivate GlShader.TypeshaderType -
Constructor Summary
Constructors Modifier Constructor Description privateGlShader(GlShader.Type shaderType, int shaderRef, String name) -
Method Summary
Modifier and Type Method Description voidattachTo(GlProgram glProgram)static GlShadercreateFromResource(GlShader.Type type, String name, InputStream sourceCode, String string)StringgetName()voidrelease()
-
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
-