M
- The type of parameter datapublic interface R2ShaderUsableType<M>
extends com.io7m.jcanephora.core.JCGLResourceUsableType
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
environment() |
void |
onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Activate the shader for rendering.
|
void |
onDeactivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Deactivate the shader.
|
void |
onValidate()
Validate the shader prior to executing a draw call.
|
long |
shaderID() |
Class<M> |
shaderParametersType() |
com.io7m.jcanephora.core.JCGLProgramShaderUsableType |
shaderProgram() |
Map<String,String> environment()
long shaderID()
com.io7m.jcanephora.core.JCGLProgramShaderUsableType shaderProgram()
void onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
g
- A GL interfacevoid onValidate() throws R2ExceptionShaderValidationFailed
R2ExceptionShaderValidationFailed
- If validation failsvoid onDeactivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
g
- A GL interfaceCopyright © 2017 <code@io7m.com> http://io7m.com