M
- The type of parameter datapublic interface R2ShaderInstanceSingleUsableType<M> extends R2ShaderUsableType<M>
Modifier and Type | Method and Description |
---|---|
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<M> 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.
|
environment, onActivate, onDeactivate, onValidate, shaderID, shaderParametersType, shaderProgram
void onReceiveViewValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g, R2ShaderParametersViewType view_parameters)
Set shader values that are derived from the current view.
This method will be called exactly once between calls to R2ShaderUsableType.onActivate(JCGLInterfaceGL33Type)
and R2ShaderUsableType.onValidate()
.
g
- An OpenGL interfaceview_parameters
- The view parametersvoid onReceiveMaterialValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g, R2ShaderParametersMaterialType<M> mat_parameters)
Set 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(JCGLInterfaceGL33Type)
and before a call to R2ShaderUsableType.onValidate()
.
g
- A texture interfacemat_parameters
- The material parametersvoid onReceiveInstanceTransformValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g, R2MatricesInstanceSingleValuesType m)
Set 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(JCGLInterfaceGL33Type)
and before a call to R2ShaderUsableType.onValidate()
.
g
- An OpenGL interfacem
- The instance matricesCopyright © 2017 <code@io7m.com> http://io7m.com