public final class R2StencilShaderScreen extends R2AbstractShader<com.io7m.jfunctional.Unit> implements R2ShaderInstanceSingleScreenType<com.io7m.jfunctional.Unit>
| Modifier and Type | Method and Description |
|---|---|
static R2ShaderInstanceSingleScreenType<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 |
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 R2ShaderInstanceSingleScreenType<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)
R2ShaderInstanceSingleScreenUsableTypeSet 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 R2ShaderInstanceSingleScreenUsableType<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)
R2ShaderInstanceSingleScreenUsableTypeSet 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 R2ShaderInstanceSingleScreenUsableType<com.io7m.jfunctional.Unit>g - A texture interfacemat_parameters - The material parametersCopyright © 2016 <code@io7m.com> http://io7m.com