public final class R2MaskRenderer extends Object implements R2MaskRendererType
R2MaskRendererType
interface.Modifier and Type | Method and Description |
---|---|
static R2MaskRenderer |
create(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool)
Construct a new renderer.
|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3)
Delete the current object.
|
boolean |
isDeleted() |
void |
renderMask(com.io7m.jregions.core.unparameterized.areas.AreaL 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap
public static R2MaskRenderer create(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.jregions.core.unparameterized.areas.AreaL area, Optional<R2MaskBufferUsableType> mbuffer, com.io7m.jcanephora.profiler.JCGLProfilingContextType pc, com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tucp, R2MatricesObserverType m, R2MaskInstancesType s)
R2MaskRendererType
Render 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 R2MaskRendererType
area
- 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
R2DeletableType
delete
in interface R2DeletableType
g3
- An OpenGL interfaceR2Exception
- On errorspublic boolean isDeleted()
isDeleted
in interface com.io7m.jcanephora.core.JCGLResourceUsableType
Copyright © 2017 <code@io7m.com> http://io7m.com