com.io7m.r2.core

## Interface R2InstanceBillboardedType

- All Superinterfaces:
    R2InstanceType
  All Known Subinterfaces:
    R2InstanceBillboardedDynamicType
  All Known Implementing Classes:
    R2InstanceBillboardedDynamic

      public interface R2InstanceBillboardedType
      extends R2InstanceType

  The type of billboarded instances.

  A billboarded instance consists of a set of one or more vertex buffers containing a list of world-space positions. At render-time, the positions are transformed into quadrilaterals (pairs of triangles) that are oriented to face the viewer at all times.

  The primary use case for billboarded instances is rendering particle systems.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.io7m.jcanephora.core.JCGLArrayObjectType` | `arrayObject()`
    `int` | `enabledCount()`
    `void` | `update(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g, R2TransformContextType context)` Update any data required for rendering on the GPU.

    - ### Methods inherited from interface com.io7m.r2.core.R2InstanceType

      `instanceID`

- - ### Method Detail

    - #### arrayObject

          com.io7m.jcanephora.core.JCGLArrayObjectType arrayObject()

      Returns:
        The instance array object

    - #### update

          void update(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
                      R2TransformContextType context)

      Update any data required for rendering on the GPU.
      Parameters:
        `context` - The transform context
        `g` - An OpenGL interface

    - #### enabledCount

          int enabledCount()

      Returns:
        The number of instances currently present in the set

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