com.io7m.r2.core

## Interface R2SceneStencilsConsumerType

-     public interface R2SceneStencilsConsumerType

  A consumer for stencil instances.

  Instances are batched in a manner that is intended to require the minimum number of state changes for rendering.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onFinish()` Called when rendering of stencil instances is finished.
    `void` | `onInstanceSingle(R2InstanceSingleType i)` Called when a single instance should be rendered.
    `void` | `onInstanceSingleStartArray(R2InstanceSingleType i)` Called when a new array object should be bound.
    `void` | `onStart()` Called when rendering of stencil instances begins.

- - ### Method Detail

    - #### onStart

          void onStart()

      Called when rendering of stencil instances begins.

    - #### onInstanceSingleStartArray

          void onInstanceSingleStartArray(R2InstanceSingleType i)

      Called when a new array object should be bound.
      Parameters:
        `i` - The current instance

    - #### onInstanceSingle

          void onInstanceSingle(R2InstanceSingleType i)

      Called when a single instance should be rendered.
      Parameters:
        `i` - The current instance

    - #### onFinish

          void onFinish()

      Called when rendering of stencil instances is finished.

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