public class GLFWGammaRamp
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
red – an array of values describing the response of the red channelgreen – an array of values describing the response of the green channelblue – an array of values describing the response of the blue channelsize – the number of elements in each array
struct GLFWgammaramp {
unsigned short * red;
unsigned short * green;
unsigned short * blue;
unsigned int size;
}| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWGammaRamp.Buffer
An array of
GLFWGammaRamp structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BLUE
The struct member offsets.
|
static int |
GREEN
The struct member offsets.
|
static int |
RED
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
GLFWGammaRamp(java.nio.ByteBuffer container)
Creates a
GLFWGammaRamp instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ShortBuffer |
blue()
Returns a
ShortBuffer view of the data pointed to by the blue field. |
GLFWGammaRamp |
blue(java.nio.ShortBuffer value)
Sets the address of the specified
ShortBuffer to the blue field. |
static GLFWGammaRamp |
calloc()
Returns a new
GLFWGammaRamp instance allocated with memCalloc. |
static GLFWGammaRamp.Buffer |
calloc(int capacity)
Returns a new
GLFWGammaRamp.Buffer instance allocated with memCalloc. |
static GLFWGammaRamp |
callocStack()
Returns a new
GLFWGammaRamp instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static GLFWGammaRamp.Buffer |
callocStack(int capacity)
Returns a new
GLFWGammaRamp.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static GLFWGammaRamp.Buffer |
callocStack(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. |
static GLFWGammaRamp |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
GLFWGammaRamp instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static GLFWGammaRamp |
create()
Returns a new
GLFWGammaRamp instance allocated with BufferUtils. |
static GLFWGammaRamp.Buffer |
create(int capacity)
Returns a new
GLFWGammaRamp.Buffer instance allocated with BufferUtils. |
static GLFWGammaRamp |
create(long address)
Returns a new
GLFWGammaRamp instance for the specified memory address. |
static GLFWGammaRamp.Buffer |
create(long address,
int capacity)
Create a
GLFWGammaRamp.Buffer instance at the specified memory. |
static GLFWGammaRamp |
createSafe(long address)
|
static GLFWGammaRamp.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ShortBuffer |
green()
Returns a
ShortBuffer view of the data pointed to by the green field. |
GLFWGammaRamp |
green(java.nio.ShortBuffer value)
Sets the address of the specified
ShortBuffer to the green field. |
static GLFWGammaRamp |
malloc()
Returns a new
GLFWGammaRamp instance allocated with memAlloc. |
static GLFWGammaRamp.Buffer |
malloc(int capacity)
Returns a new
GLFWGammaRamp.Buffer instance allocated with memAlloc. |
static GLFWGammaRamp |
mallocStack()
Returns a new
GLFWGammaRamp instance allocated on the thread-local MemoryStack. |
static GLFWGammaRamp.Buffer |
mallocStack(int capacity)
Returns a new
GLFWGammaRamp.Buffer instance allocated on the thread-local MemoryStack. |
static GLFWGammaRamp.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
GLFWGammaRamp.Buffer instance allocated on the specified MemoryStack. |
static GLFWGammaRamp |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
GLFWGammaRamp instance allocated on the specified MemoryStack. |
static java.nio.ShortBuffer |
nblue(long struct)
Unsafe version of
blue. |
static void |
nblue(long struct,
java.nio.ShortBuffer value)
Unsafe version of
blue. |
static java.nio.ShortBuffer |
ngreen(long struct)
Unsafe version of
green. |
static void |
ngreen(long struct,
java.nio.ShortBuffer value)
Unsafe version of
green. |
static java.nio.ShortBuffer |
nred(long struct)
Unsafe version of
red. |
static void |
nred(long struct,
java.nio.ShortBuffer value)
Unsafe version of
red. |
static int |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
int value)
Sets the specified value to the
size field of the specified struct. |
java.nio.ShortBuffer |
red()
Returns a
ShortBuffer view of the data pointed to by the red field. |
GLFWGammaRamp |
red(java.nio.ShortBuffer value)
Sets the address of the specified
ShortBuffer to the red field. |
GLFWGammaRamp |
set(GLFWGammaRamp src)
Copies the specified struct data to this struct.
|
GLFWGammaRamp |
set(java.nio.ShortBuffer red,
java.nio.ShortBuffer green,
java.nio.ShortBuffer blue,
int size)
Initializes this struct with the specified values.
|
int |
size()
Returns the value of the
size field. |
GLFWGammaRamp |
size(int value)
Sets the specified value to the
size field. |
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int SIZE
public GLFWGammaRamp(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.ShortBuffer red()
ShortBuffer view of the data pointed to by the red field.public java.nio.ShortBuffer green()
ShortBuffer view of the data pointed to by the green field.public java.nio.ShortBuffer blue()
ShortBuffer view of the data pointed to by the blue field.public int size()
size field.public GLFWGammaRamp red(java.nio.ShortBuffer value)
ShortBuffer to the red field.public GLFWGammaRamp green(java.nio.ShortBuffer value)
ShortBuffer to the green field.public GLFWGammaRamp blue(java.nio.ShortBuffer value)
ShortBuffer to the blue field.public GLFWGammaRamp size(int value)
size field.public GLFWGammaRamp set(java.nio.ShortBuffer red, java.nio.ShortBuffer green, java.nio.ShortBuffer blue, int size)
public GLFWGammaRamp set(GLFWGammaRamp src)
src - the source structpublic static GLFWGammaRamp malloc()
GLFWGammaRamp instance allocated with memAlloc. The instance must be explicitly freed.public static GLFWGammaRamp calloc()
GLFWGammaRamp instance allocated with memCalloc. The instance must be explicitly freed.public static GLFWGammaRamp create()
GLFWGammaRamp instance allocated with BufferUtils.public static GLFWGammaRamp create(long address)
GLFWGammaRamp instance for the specified memory address.@Nullable public static GLFWGammaRamp createSafe(long address)
public static GLFWGammaRamp.Buffer malloc(int capacity)
GLFWGammaRamp.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static GLFWGammaRamp.Buffer calloc(int capacity)
GLFWGammaRamp.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static GLFWGammaRamp.Buffer create(int capacity)
GLFWGammaRamp.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static GLFWGammaRamp.Buffer create(long address, int capacity)
GLFWGammaRamp.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static GLFWGammaRamp.Buffer createSafe(long address, int capacity)
public static GLFWGammaRamp mallocStack()
GLFWGammaRamp instance allocated on the thread-local MemoryStack.public static GLFWGammaRamp callocStack()
GLFWGammaRamp instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static GLFWGammaRamp mallocStack(org.lwjgl.system.MemoryStack stack)
GLFWGammaRamp instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static GLFWGammaRamp callocStack(org.lwjgl.system.MemoryStack stack)
GLFWGammaRamp instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static GLFWGammaRamp.Buffer mallocStack(int capacity)
GLFWGammaRamp.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static GLFWGammaRamp.Buffer callocStack(int capacity)
GLFWGammaRamp.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static GLFWGammaRamp.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
GLFWGammaRamp.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static GLFWGammaRamp.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
GLFWGammaRamp.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ShortBuffer nred(long struct)
red.public static java.nio.ShortBuffer ngreen(long struct)
green.public static java.nio.ShortBuffer nblue(long struct)
blue.public static int nsize(long struct)
size().public static void nred(long struct,
java.nio.ShortBuffer value)
red.public static void ngreen(long struct,
java.nio.ShortBuffer value)
green.public static void nblue(long struct,
java.nio.ShortBuffer value)
blue.public static void nsize(long struct,
int value)
size field of the specified struct.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.