Package org.lwjgl.glfw
Class GLFWGammaRamp
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.glfw.GLFWGammaRamp
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class GLFWGammaRamp extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the gamma ramp for a monitor.Layout
struct GLFWgammaramp { unsigned short *red(); unsigned short *green(); unsigned short *blue(); unsigned intsize(); }- Since:
- version 3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGLFWGammaRamp.BufferAn array ofGLFWGammaRampstructs.
-
Constructor Summary
Constructors Constructor Description GLFWGammaRamp(java.nio.ByteBuffer container)Creates aGLFWGammaRampinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.nio.ShortBufferblue()an array of values describing the response of the blue channelGLFWGammaRampblue(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto theblue()field.static GLFWGammaRampcalloc()Returns a newGLFWGammaRampinstance allocated withmemCalloc.static GLFWGammaRamp.Buffercalloc(int capacity)Returns a newGLFWGammaRamp.Bufferinstance allocated withmemCalloc.static GLFWGammaRamp.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newGLFWGammaRamp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLFWGammaRampcalloc(org.lwjgl.system.MemoryStack stack)Returns a newGLFWGammaRampinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLFWGammaRampcallocStack()Deprecated.static GLFWGammaRamp.BuffercallocStack(int capacity)Deprecated.static GLFWGammaRamp.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static GLFWGammaRampcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static GLFWGammaRampcreate()Returns a newGLFWGammaRampinstance allocated withBufferUtils.static GLFWGammaRamp.Buffercreate(int capacity)Returns a newGLFWGammaRamp.Bufferinstance allocated withBufferUtils.static GLFWGammaRampcreate(long address)Returns a newGLFWGammaRampinstance for the specified memory address.static GLFWGammaRamp.Buffercreate(long address, int capacity)Create aGLFWGammaRamp.Bufferinstance at the specified memory.static GLFWGammaRampcreateSafe(long address)static GLFWGammaRamp.BuffercreateSafe(long address, int capacity)java.nio.ShortBuffergreen()an array of values describing the response of the green channelGLFWGammaRampgreen(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto thegreen()field.static GLFWGammaRampmalloc()Returns a newGLFWGammaRampinstance allocated withmemAlloc.static GLFWGammaRamp.Buffermalloc(int capacity)Returns a newGLFWGammaRamp.Bufferinstance allocated withmemAlloc.static GLFWGammaRamp.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newGLFWGammaRamp.Bufferinstance allocated on the specifiedMemoryStack.static GLFWGammaRampmalloc(org.lwjgl.system.MemoryStack stack)Returns a newGLFWGammaRampinstance allocated on the specifiedMemoryStack.static GLFWGammaRampmallocStack()Deprecated.static GLFWGammaRamp.BuffermallocStack(int capacity)Deprecated.static GLFWGammaRamp.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static GLFWGammaRampmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ShortBuffernblue(long struct)Unsafe version ofblue.static voidnblue(long struct, java.nio.ShortBuffer value)Unsafe version ofblue.static java.nio.ShortBufferngreen(long struct)Unsafe version ofgreen.static voidngreen(long struct, java.nio.ShortBuffer value)Unsafe version ofgreen.static java.nio.ShortBuffernred(long struct)Unsafe version ofred.static voidnred(long struct, java.nio.ShortBuffer value)Unsafe version ofred.static intnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.java.nio.ShortBufferred()an array of values describing the response of the red channelGLFWGammaRampred(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto thered()field.GLFWGammaRampset(java.nio.ShortBuffer red, java.nio.ShortBuffer green, java.nio.ShortBuffer blue, int size)Initializes this struct with the specified values.GLFWGammaRampset(GLFWGammaRamp src)Copies the specified struct data to this struct.intsize()the number of elements in each arrayGLFWGammaRampsize(int value)Sets the specified value to thesize()field.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
GLFWGammaRamp
public GLFWGammaRamp(java.nio.ByteBuffer container)
Creates aGLFWGammaRampinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
red
public java.nio.ShortBuffer red()
an array of values describing the response of the red channel
-
green
public java.nio.ShortBuffer green()
an array of values describing the response of the green channel
-
blue
public java.nio.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(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto thered()field.
-
green
public GLFWGammaRamp green(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto thegreen()field.
-
blue
public GLFWGammaRamp blue(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto theblue()field.
-
size
public GLFWGammaRamp size(int value)
Sets the specified value to thesize()field.
-
set
public GLFWGammaRamp set(java.nio.ShortBuffer red, java.nio.ShortBuffer green, java.nio.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 newGLFWGammaRampinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static GLFWGammaRamp calloc()
Returns a newGLFWGammaRampinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static GLFWGammaRamp create()
Returns a newGLFWGammaRampinstance allocated withBufferUtils.
-
create
public static GLFWGammaRamp create(long address)
Returns a newGLFWGammaRampinstance for the specified memory address.
-
createSafe
@Nullable public static GLFWGammaRamp createSafe(long address)
-
malloc
public static GLFWGammaRamp.Buffer malloc(int capacity)
Returns a newGLFWGammaRamp.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static GLFWGammaRamp.Buffer calloc(int capacity)
Returns a newGLFWGammaRamp.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static GLFWGammaRamp.Buffer create(int capacity)
Returns a newGLFWGammaRamp.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static GLFWGammaRamp.Buffer create(long address, int capacity)
Create aGLFWGammaRamp.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static GLFWGammaRamp.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static GLFWGammaRamp mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static GLFWGammaRamp callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static GLFWGammaRamp mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static GLFWGammaRamp callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static GLFWGammaRamp.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static GLFWGammaRamp.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(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. Usemalloc(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. Usecalloc(int, MemoryStack)instead.
-
malloc
public static GLFWGammaRamp malloc(org.lwjgl.system.MemoryStack stack)
Returns a newGLFWGammaRampinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static GLFWGammaRamp calloc(org.lwjgl.system.MemoryStack stack)
Returns a newGLFWGammaRampinstance allocated on the specifiedMemoryStackand 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 newGLFWGammaRamp.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static GLFWGammaRamp.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newGLFWGammaRamp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nred
public static java.nio.ShortBuffer nred(long struct)
Unsafe version ofred.
-
ngreen
public static java.nio.ShortBuffer ngreen(long struct)
Unsafe version ofgreen.
-
nblue
public static java.nio.ShortBuffer nblue(long struct)
Unsafe version ofblue.
-
nsize
public static int nsize(long struct)
Unsafe version ofsize().
-
nred
public static void nred(long struct, java.nio.ShortBuffer value)Unsafe version ofred.
-
ngreen
public static void ngreen(long struct, java.nio.ShortBuffer value)Unsafe version ofgreen.
-
nblue
public static void nblue(long struct, java.nio.ShortBuffer value)Unsafe version ofblue.
-
nsize
public static void nsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-