public final class R2StencilShaderSingle extends R2AbstractShader<com.io7m.jfunctional.Unit> implements R2ShaderInstanceSingleType<com.io7m.jfunctional.Unit>
| Modifier and Type | Method and Description |
|---|---|
static R2ShaderInstanceSingleType<com.io7m.jfunctional.Unit> |
newShader(com.io7m.jcanephora.core.api.JCGLShadersType in_shaders,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool)
Construct a new shader.
|
void |
onReceiveInstanceTransformValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2MatricesInstanceSingleValuesType m)
Set shader values that are derived from the current instance
transform.
|
void |
onReceiveMaterialValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ShaderParametersMaterialType<com.io7m.jfunctional.Unit> mat_parameters)
Set material values.
|
void |
onReceiveViewValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ShaderParametersViewType view_parameters)
Set shader values that are derived from the current view.
|
void |
onValidate()
Validate the shader prior to executing a draw call.
|
Class<com.io7m.jfunctional.Unit> |
shaderParametersType() |
delete, isDeleted, onActivate, onDeactivate, shaderID, shaderProgramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteonActivate, onDeactivate, shaderID, shaderProgrampublic static R2ShaderInstanceSingleType<com.io7m.jfunctional.Unit> newShader(com.io7m.jcanephora.core.api.JCGLShadersType in_shaders, R2ShaderPreprocessingEnvironmentReadableType in_shader_env, R2IDPoolType in_pool)
in_shaders - A shader interfacein_shader_env - A shader preprocessing environmentin_pool - The ID poolpublic Class<com.io7m.jfunctional.Unit> shaderParametersType()
shaderParametersType in interface R2ShaderUsableType<com.io7m.jfunctional.Unit>public void onValidate()
throws R2ExceptionShaderValidationFailed
R2ShaderUsableTypeonValidate in interface R2ShaderUsableType<com.io7m.jfunctional.Unit>R2ExceptionShaderValidationFailed - If validation failspublic void onReceiveViewValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ShaderParametersViewType view_parameters)
R2ShaderInstanceSingleUsableTypeSet shader values that are derived from the current view.
This method will be called exactly once between calls to R2ShaderUsableType.onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type)
and R2ShaderUsableType.onValidate().
onReceiveViewValues in interface R2ShaderInstanceSingleUsableType<com.io7m.jfunctional.Unit>g - An OpenGL interfaceview_parameters - The view parameterspublic void onReceiveMaterialValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ShaderParametersMaterialType<com.io7m.jfunctional.Unit> mat_parameters)
R2ShaderInstanceSingleUsableTypeSet material values.
This method will be called once for each group of instances that use the
material M.
This method will be called after a call to R2ShaderUsableType.onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type)
and before a call to R2ShaderUsableType.onValidate().
onReceiveMaterialValues in interface R2ShaderInstanceSingleUsableType<com.io7m.jfunctional.Unit>g - A texture interfacemat_parameters - The material parameterspublic void onReceiveInstanceTransformValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2MatricesInstanceSingleValuesType m)
R2ShaderInstanceSingleUsableTypeSet shader values that are derived from the current instance transform.
This method will be called exactly once for each single instance that uses the shader.
This method will be called after a call to R2ShaderUsableType.onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type)
and before a call to R2ShaderUsableType.onValidate().
onReceiveInstanceTransformValues in interface R2ShaderInstanceSingleUsableType<com.io7m.jfunctional.Unit>g - An OpenGL interfacem - The instance matricesCopyright © 2016 <code@io7m.com> http://io7m.com