com.io7m.r2.filters

## Class R2FilterOcclusionApplicator

- java.lang.Object
- - com.io7m.r2.filters.R2FilterOcclusionApplicator

- All Implemented Interfaces:
    com.io7m.jcanephora.core.JCGLResourceUsableType, R2DeletableType, R2FilterType<R2FilterOcclusionApplicatorParameters>, R2FilterUsableType<R2FilterOcclusionApplicatorParameters>

      public final class R2FilterOcclusionApplicator
      extends Object
      implements R2FilterType<R2FilterOcclusionApplicatorParameters>

  A filter that applies ambient occlusion to a light buffer.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type gx)` Delete the current object.
    `boolean` | `isDeleted()`
    `static R2FilterType<R2FilterOcclusionApplicatorParameters>` | `newFilter(R2ShaderPreprocessingEnvironmentReadableType in_shader_env, R2TextureDefaultsType in_textures, com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g, R2IDPoolType in_pool, R2UnitQuadUsableType in_quad)` Construct a new filter.
    `void` | `runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc, com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc, R2FilterOcclusionApplicatorParameters parameters)` Run the filter for the given parameters.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### newFilter

          public static R2FilterType<R2FilterOcclusionApplicatorParameters> newFilter(R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
                                                                                      R2TextureDefaultsType in_textures,
                                                                                      com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
                                                                                      R2IDPoolType in_pool,
                                                                                      R2UnitQuadUsableType in_quad)

      Construct a new filter.
      Parameters:
        `in_shader_env` - Shader sources
        `in_textures` - A texture interface
        `in_g` - A GL interface
        `in_pool` - An ID pool
        `in_quad` - A unit quad
      Returns:
        A new filter

    - #### delete

          public void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type gx)
                      throws R2Exception

      Description copied from interface: `R2DeletableType`
      Delete the current object.
      Specified by:
        `delete` in interface `R2DeletableType`
      Parameters:
        `gx` - An OpenGL interface
      Throws:
        `R2Exception` - On errors

    - #### isDeleted

          public boolean isDeleted()

      Specified by:
        `isDeleted` in interface `com.io7m.jcanephora.core.JCGLResourceUsableType`

    - #### runFilter

          public void runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
                                com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
                                R2FilterOcclusionApplicatorParameters parameters)

      Description copied from interface: `R2FilterUsableType`
      Run the filter for the given parameters.
      Specified by:
        `runFilter` in interface `R2FilterUsableType<R2FilterOcclusionApplicatorParameters>`
      Parameters:
        `pc` - A profiling context
        `uc` - A texture unit context
        `parameters` - The filter parameters

Copyright © 2017 <code@io7m.com> http://io7m.com