public final class R2MaskRenderer extends Object implements R2MaskRendererType
R2MaskRendererType interface.| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3)
Delete the current object.
|
boolean |
isDeleted() |
static R2MaskRendererType |
newRenderer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool)
Construct a new renderer.
|
void |
renderMask(com.io7m.jareas.core.AreaInclusiveUnsignedLType area,
Optional<R2MaskBufferUsableType> mbuffer,
com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType tucp,
R2MatricesObserverType m,
R2MaskInstancesType s)
Render the given instances into the given mask buffer.
|
public static R2MaskRendererType newRenderer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g, R2ShaderPreprocessingEnvironmentReadableType in_shader_env, R2IDPoolType in_pool)
in_g - An OpenGL interfacein_shader_env - A shader preprocessing environmentin_pool - An ID poolpublic void renderMask(com.io7m.jareas.core.AreaInclusiveUnsignedLType area,
Optional<R2MaskBufferUsableType> mbuffer,
com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType tucp,
R2MatricesObserverType m,
R2MaskInstancesType s)
R2MaskRendererTypeRender the given instances into the given mask buffer.
If a mask buffer is provided, it will be bound before evaluation and left bound after the method returns.
renderMask in interface R2MaskRendererTypearea - The output viewportmbuffer - The optional mask bufferpc - A profiling contexttucp - A texture unit contextm - A matrix contexts - The mask instancespublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3)
throws R2Exception
R2DeletableTypedelete in interface R2DeletableTypeg3 - An OpenGL interfaceR2Exception - On errorspublic boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypeCopyright © 2016 <code@io7m.com> http://io7m.com