Package zombie.core.opengl
Class ShaderUnit
java.lang.Object
zombie.core.opengl.ShaderUnit
public final class ShaderUnit
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShaderUnit.Type
-
Constructor Summary
Constructors Constructor Description ShaderUnit(ShaderProgram shaderProgram, java.lang.String string, ShaderUnit.Type type)
-
Method Summary
Modifier and Type Method Description boolean
attach()
boolean
compile()
void
destroy()
java.lang.String
getFileName()
int
getGLID()
int
getParentShaderProgramGLID()
boolean
isCompiled()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ShaderUnit
-
-
Method Details
-
getFileName
public java.lang.String getFileName() -
isCompiled
public boolean isCompiled() -
compile
public boolean compile() -
attach
public boolean attach() -
destroy
public void destroy() -
getGLID
public int getGLID() -
getParentShaderProgramGLID
public int getParentShaderProgramGLID()
-