Package zombie.core.opengl
Class ShaderProgram
java.lang.Object
zombie.core.opengl.ShaderProgram
public final class ShaderProgram
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShaderProgram.Uniform
-
Method Summary
Modifier and Type Method Description void
addCompileListener(IShaderProgramListener iShaderProgramListener)
ShaderUnit
addShader(java.lang.String string, ShaderUnit.Type type)
void
compile()
static int
createFragShader(java.lang.String string)
Deprecated.static ShaderProgram
createShaderProgram(java.lang.String string, boolean boolean1, boolean boolean2)
static int
createVertShader(java.lang.String string)
Deprecated.void
destroy()
void
End()
static java.lang.String
getLogInfo(int int1)
java.lang.String
getName()
int
getShaderID()
ShaderProgram.Uniform
getUniform(java.lang.String string, int int1)
ShaderProgram.Uniform
getUniform(java.lang.String string, int int1, boolean boolean1)
boolean
isCompiled()
static void
printLogInfo(int int1)
void
removeCompileListener(IShaderProgramListener iShaderProgramListener)
void
setSamplerUnit(java.lang.String string, int int1)
void
setValue(java.lang.String string, float float1)
void
setValue(java.lang.String string, int int1)
void
setValue(java.lang.String string, org.lwjgl.util.vector.Matrix4f matrix4f)
void
setValue(java.lang.String string, Texture texture, int int1)
void
setValue(java.lang.String string, Vector2 vector2)
void
setValue(java.lang.String string, Vector3 vector3)
void
setValueColor(java.lang.String string, int int1)
void
setValueColorRGB(java.lang.String string, int int1)
void
setVector2(int int1, float float1, float float2)
void
setVector2(java.lang.String string, float float1, float float2)
void
setVector3(int int1, float float1, float float2, float float3)
void
setVector3(java.lang.String string, float float1, float float2, float float3)
void
setVector4(int int1, float float1, float float2, float float3, float float4)
void
setVector4(java.lang.String string, float float1, float float2, float float3, float float4)
void
Start()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getName
public java.lang.String getName() -
addCompileListener
-
removeCompileListener
-
compile
public void compile() -
addShader
-
createShaderProgram
public static ShaderProgram createShaderProgram(java.lang.String string, boolean boolean1, boolean boolean2) -
createVertShader
@Deprecated public static int createVertShader(java.lang.String string)Deprecated. -
createFragShader
@Deprecated public static int createFragShader(java.lang.String string)Deprecated. -
printLogInfo
public static void printLogInfo(int int1) -
getLogInfo
public static java.lang.String getLogInfo(int int1) -
isCompiled
public boolean isCompiled() -
destroy
public void destroy() -
getShaderID
public int getShaderID() -
Start
public void Start() -
End
public void End() -
setSamplerUnit
public void setSamplerUnit(java.lang.String string, int int1) -
setValueColor
public void setValueColor(java.lang.String string, int int1) -
setValueColorRGB
public void setValueColorRGB(java.lang.String string, int int1) -
setValue
public void setValue(java.lang.String string, float float1) -
setValue
public void setValue(java.lang.String string, int int1) -
setValue
-
setValue
-
setVector2
public void setVector2(java.lang.String string, float float1, float float2) -
setVector3
public void setVector3(java.lang.String string, float float1, float float2, float float3) -
setVector4
public void setVector4(java.lang.String string, float float1, float float2, float float3, float float4) -
getUniform
-
getUniform
-
setValue
public void setValue(java.lang.String string, org.lwjgl.util.vector.Matrix4f matrix4f) -
setValue
-
setVector2
public void setVector2(int int1, float float1, float float2) -
setVector3
public void setVector3(int int1, float float1, float float2, float float3) -
setVector4
public void setVector4(int int1, float float1, float float2, float float3, float float4)
-