com.io7m.jcanephora.cursors

## Interface JCGLRG8WritableType

- All Superinterfaces:
    com.io7m.jpra.runtime.java.JPRAValueType
  All Known Subinterfaces:
    JCGLRG8Type
  All Known Implementing Classes:
    JCGLRG8ByteBuffered

      public interface JCGLRG8WritableType
      extends com.io7m.jpra.runtime.java.JPRAValueType

  The writable interface to values of the `JCGLRG8WritableType` packed type.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `set(double r, double g)` Set the value of all fields.
    `void` | `setG(double x)` Set the value of the `g` field.
    `void` | `setGRaw(int x)` Set the value of the `g` field.
    `void` | `setR(double x)` Set the value of the `r` field.
    `void` | `setRRaw(int x)` Set the value of the `r` field.

    - ### Methods inherited from interface com.io7m.jpra.runtime.java.JPRAValueType

      `sizeOctets`

- - ### Method Detail

    - #### setR

          void setR(double x)

      Set the value of the `r` field.
      Parameters:
        `x` - The new value (in the range `[0, 1]`)

    - #### setRRaw

          void setRRaw(int x)

      Set the value of the `r` field. The 8 least significant bits of `x` will be used.
      Parameters:
        `x` - The new value

    - #### setG

          void setG(double x)

      Set the value of the `g` field.
      Parameters:
        `x` - The new value (in the range `[0, 1]`)

    - #### setGRaw

          void setGRaw(int x)

      Set the value of the `g` field. The 8 least significant bits of `x` will be used.
      Parameters:
        `x` - The new value

    - #### set

          void set(double r,
                   double g)

      Set the value of all fields.
      Parameters:
        `r` - The value for field `r`
        `g` - The value for field `g`

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