M - The type of shader parameterspublic abstract class R2AbstractShader<M> extends Object implements R2ShaderType<M>
| Modifier | Constructor and Description |
|---|---|
protected |
R2AbstractShader(com.io7m.jcanephora.core.api.JCGLShadersType in_shaders,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool,
String in_name,
String in_vertex,
Optional<String> in_geometry,
String in_fragment) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Delete the current object.
|
boolean |
isDeleted() |
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.
|
long |
shaderID() |
com.io7m.jcanephora.core.JCGLProgramShaderUsableType |
shaderProgram() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonValidate, shaderParametersTypeprotected R2AbstractShader(com.io7m.jcanephora.core.api.JCGLShadersType in_shaders,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool,
String in_name,
String in_vertex,
Optional<String> in_geometry,
String in_fragment)
throws R2ExceptionShaderPreprocessingFailed
public final boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypepublic final void onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
R2ShaderUsableTypeonActivate in interface R2ShaderUsableType<M>g - A GL interfacepublic final void onDeactivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
R2ShaderUsableTypeonDeactivate in interface R2ShaderUsableType<M>g - A GL interfacepublic final void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
R2DeletableTypedelete in interface R2DeletableTypeg - An OpenGL interfacepublic final com.io7m.jcanephora.core.JCGLProgramShaderUsableType shaderProgram()
shaderProgram in interface R2ShaderUsableType<M>public final long shaderID()
shaderID in interface R2ShaderUsableType<M>Copyright © 2016 <code@io7m.com> http://io7m.com