Class GLFWGammaRamp

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<GLFWGammaRamp>
org.lwjgl.glfw.GLFWGammaRamp
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class GLFWGammaRamp extends org.lwjgl.system.Struct<GLFWGammaRamp> implements org.lwjgl.system.NativeResource
Describes the gamma ramp for a monitor.

Layout


 struct GLFWgammaramp {
     unsigned short * red();
     unsigned short * green();
     unsigned short * blue();
     unsigned int size();
 }
Since:
version 3.0
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • RED

      public static final int RED
      The struct member offsets.
    • GREEN

      public static final int GREEN
      The struct member offsets.
    • BLUE

      public static final int BLUE
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
  • Constructor Details

    • GLFWGammaRamp

      public GLFWGammaRamp(ByteBuffer container)
      Creates a GLFWGammaRamp instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<GLFWGammaRamp>
    • red

      public ShortBuffer red()
      an array of values describing the response of the red channel
    • green

      public ShortBuffer green()
      an array of values describing the response of the green channel
    • blue

      public ShortBuffer blue()
      an array of values describing the response of the blue channel
    • size

      public int size()
      the number of elements in each array
    • red

      public GLFWGammaRamp red(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the red() field.
    • green

      public GLFWGammaRamp green(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the green() field.
    • blue

      public GLFWGammaRamp blue(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the blue() field.
    • size

      public GLFWGammaRamp size(int value)
      Sets the specified value to the size() field.
    • set

      public GLFWGammaRamp set(ShortBuffer red, ShortBuffer green, ShortBuffer blue, int size)
      Initializes this struct with the specified values.
    • set

      public GLFWGammaRamp set(GLFWGammaRamp src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static GLFWGammaRamp malloc()
      Returns a new GLFWGammaRamp instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static GLFWGammaRamp calloc()
      Returns a new GLFWGammaRamp instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static GLFWGammaRamp create()
      Returns a new GLFWGammaRamp instance allocated with BufferUtils.
    • create

      public static GLFWGammaRamp create(long address)
      Returns a new GLFWGammaRamp instance for the specified memory address.
    • createSafe

      @Nullable public static GLFWGammaRamp createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static GLFWGammaRamp.Buffer malloc(int capacity)
      Returns a new GLFWGammaRamp.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static GLFWGammaRamp.Buffer calloc(int capacity)
      Returns a new GLFWGammaRamp.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static GLFWGammaRamp.Buffer create(int capacity)
      Returns a new GLFWGammaRamp.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static GLFWGammaRamp.Buffer create(long address, int capacity)
      Create a GLFWGammaRamp.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static GLFWGammaRamp.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static GLFWGammaRamp mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static GLFWGammaRamp callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static GLFWGammaRamp mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static GLFWGammaRamp callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static GLFWGammaRamp.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static GLFWGammaRamp.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static GLFWGammaRamp.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static GLFWGammaRamp.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static GLFWGammaRamp malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new GLFWGammaRamp instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static GLFWGammaRamp calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new GLFWGammaRamp instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static GLFWGammaRamp.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new GLFWGammaRamp.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static GLFWGammaRamp.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new GLFWGammaRamp.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nred

      public static ShortBuffer nred(long struct)
      Unsafe version of red.
    • ngreen

      public static ShortBuffer ngreen(long struct)
      Unsafe version of green.
    • nblue

      public static ShortBuffer nblue(long struct)
      Unsafe version of blue.
    • nsize

      public static int nsize(long struct)
      Unsafe version of size().
    • nred

      public static void nred(long struct, ShortBuffer value)
      Unsafe version of red.
    • ngreen

      public static void ngreen(long struct, ShortBuffer value)
      Unsafe version of green.
    • nblue

      public static void nblue(long struct, ShortBuffer value)
      Unsafe version of blue.
    • nsize

      public static void nsize(long struct, int value)
      Sets the specified value to the size field of the specified struct.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate