Class GLFWGammaRamp

All Implemented Interfaces:
Addressable

public class GLFWGammaRamp extends Struct
GLFWGammaRamp relies on preview features of the Java platform:
Programs can only use GLFWGammaRamp when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
This describes the gamma ramp for a monitor.

Layout


 struct GLFWgammaramp {
     unsigned short* red;
     unsigned short* green;
     unsigned short* blue;
     unsigned int size(int);
 }
Since:
0.1.0
Author:
squid233
See Also:
  • Field Details

  • Constructor Details

    • GLFWGammaRamp

      public GLFWGammaRamp(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator)
      Create a GLFWgammaramp const instance.
      Parameters:
      address - the address.
      allocator - the allocator of this address.
  • Method Details

    • create

      public static GLFWGammaRamp create(SegmentAllocatorPREVIEW allocator)
      Creates a GLFWgammaramp instance with the given allocator.
      Parameters:
      allocator - the allocator
      Returns:
      the instance
    • red

      public GLFWGammaRamp red(short[] reds)
      Sets the red value array.
      Parameters:
      reds - the array
      Returns:
      this
    • green

      public GLFWGammaRamp green(short[] greens)
      Sets the green value array.
      Parameters:
      greens - the array
      Returns:
      this
    • blue

      public GLFWGammaRamp blue(short[] blues)
      Sets the blue value array.
      Parameters:
      blues - the array
      Returns:
      this
    • size

      public GLFWGammaRamp size(int size)
      Sets the arrays size.
      Parameters:
      size - The number of elements in each array.
      Returns:
      this
    • red

      public short red(int index)
      Gets a red value at the given index.
      Parameters:
      index - the index
      Returns:
      the red value
    • green

      public short green(int index)
      Gets a green value at the given index.
      Parameters:
      index - the index
      Returns:
      the green value
    • blue

      public short blue(int index)
      Gets a blue value at the given index.
      Parameters:
      index - the index
      Returns:
      the blue value
    • reds

      public short[] reds(int size)
      Returns the red value array.
      Parameters:
      size - the array size
      Returns:
      the red value array
    • greens

      public short[] greens(int size)
      Returns the green value array.
      Parameters:
      size - the array size
      Returns:
      the green value array
    • blues

      public short[] blues(int size)
      Returns the blue value array.
      Parameters:
      size - the array size
      Returns:
      the blue value array
    • red

      public short[] red()
      Gets the red value array.
      Returns:
      An array of value describing the response of the red channel.
    • green

      public short[] green()
      Gets the green value array.
      Returns:
      An array of value describing the response of the green channel.
    • blue

      public short[] blue()
      Gets the blue value array.
      Returns:
      An array of value describing the response of the blue channel.
    • size

      public int size()
      Gets the arrays size.
      Returns:
      The number of elements in each array.
    • nred

      public MemorySegmentPREVIEW nred()
    • ngreen

      public MemorySegmentPREVIEW ngreen()
    • nblue

      public MemorySegmentPREVIEW nblue()