com.io7m.r2.core

## Class R2LightDirectionalScreenSingle

- java.lang.Object
- - com.io7m.r2.core.R2LightDirectionalScreenSingle

- All Implemented Interfaces:
    R2LightReadableType, R2LightScreenSingleType, R2LightSingleReadableType, R2LightSingleType, R2LightSingleWritableType, R2LightWritableType

      public final class R2LightDirectionalScreenSingle
      extends Object
      implements R2LightScreenSingleType

  Parameters for single directional lights.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.io7m.jcanephora.core.JCGLArrayObjectUsableType` | `arrayObject()`
    `com.io7m.jtensors.parameterized.PVectorReadable3FType<R2SpaceRGBType>` | `color()`
    `com.io7m.jtensors.parameterized.PVector3FType<R2SpaceRGBType>` | `colorWritable()`
    `com.io7m.jtensors.parameterized.PVector3FType<R2SpaceWorldType>` | `getDirection()`
    `float` | `intensity()`
    `long` | `lightID()`
    `static R2LightDirectionalScreenSingle` | `newLight(R2UnitQuadUsableType q, R2IDPoolType pool)` Construct a new light.
    `void` | `setIntensity(float i)` Set the current light intensity
    `R2TransformReadableType` | `transform()`

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

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

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

      `matchLightSingle`

- - ### Method Detail

    - #### newLight

          public static R2LightDirectionalScreenSingle newLight(R2UnitQuadUsableType q,
                                                                R2IDPoolType pool)

      Construct a new light.
      Parameters:
        `q` - A unit quad
        `pool` - The ID pool
      Returns:
        A new light

    - #### color

          public com.io7m.jtensors.parameterized.PVectorReadable3FType<R2SpaceRGBType> color()

      Specified by:
        `color` in interface `R2LightReadableType`
      Returns:
        The readable/writable light color

    - #### getDirection

          public com.io7m.jtensors.parameterized.PVector3FType<R2SpaceWorldType> getDirection()

      Returns:
        The readable/writable light direction

    - #### intensity

          public float intensity()

      Specified by:
        `intensity` in interface `R2LightReadableType`
      Returns:
        The current light intensity

    - #### setIntensity

          public void setIntensity(float i)

      Description copied from interface: `R2LightWritableType`
      Set the current light intensity
      Specified by:
        `setIntensity` in interface `R2LightWritableType`
      Parameters:
        `i` - The intensity (typically `[0.0 .. 1.0]`)

    - #### colorWritable

          public com.io7m.jtensors.parameterized.PVector3FType<R2SpaceRGBType> colorWritable()

      Specified by:
        `colorWritable` in interface `R2LightWritableType`
      Returns:
        The readable/writable light color

    - #### lightID

          public long lightID()

      Specified by:
        `lightID` in interface `R2LightReadableType`
      Returns:
        The unique light ID

    - #### arrayObject

          public com.io7m.jcanephora.core.JCGLArrayObjectUsableType arrayObject()

      Specified by:
        `arrayObject` in interface `R2LightSingleReadableType`
      Returns:
        The array object that will be used to render the light geometry

    - #### transform

          public R2TransformReadableType transform()

      Specified by:
        `transform` in interface `R2LightSingleReadableType`
      Returns:
        The transform for the light origin

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