Package org.lwjgl.util.spng
Class spng_chrm
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spng_chrm {
double white_point_x;
double white_point_y;
double red_x;
double red_y;
double green_x;
double green_y;
double blue_x;
double blue_y;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionspng_chrm(ByteBuffer container) Creates aspng_chrminstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptiondoubleblue_x()blue_x(double value) Sets the specified value to theblue_xfield.doubleblue_y()blue_y(double value) Sets the specified value to theblue_yfield.static spng_chrmcalloc()Returns a newspng_chrminstance allocated withmemCalloc.static spng_chrm.Buffercalloc(int capacity) Returns a newspng_chrm.Bufferinstance allocated withmemCalloc.static spng_chrm.Buffercalloc(int capacity, MemoryStack stack) Returns a newspng_chrm.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_chrmcalloc(MemoryStack stack) Returns a newspng_chrminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_chrmcreate()Returns a newspng_chrminstance allocated withBufferUtils.static spng_chrm.Buffercreate(int capacity) Returns a newspng_chrm.Bufferinstance allocated withBufferUtils.static spng_chrmcreate(long address) Returns a newspng_chrminstance for the specified memory address.static spng_chrm.Buffercreate(long address, int capacity) Create aspng_chrm.Bufferinstance at the specified memory.static @Nullable spng_chrmcreateSafe(long address) static @Nullable spng_chrm.BuffercreateSafe(long address, int capacity) doublegreen_x()green_x(double value) Sets the specified value to thegreen_xfield.doublegreen_y()green_y(double value) Sets the specified value to thegreen_yfield.static spng_chrmmalloc()Returns a newspng_chrminstance allocated withmemAlloc.static spng_chrm.Buffermalloc(int capacity) Returns a newspng_chrm.Bufferinstance allocated withmemAlloc.static spng_chrm.Buffermalloc(int capacity, MemoryStack stack) Returns a newspng_chrm.Bufferinstance allocated on the specifiedMemoryStack.static spng_chrmmalloc(MemoryStack stack) Returns a newspng_chrminstance allocated on the specifiedMemoryStack.static doublenblue_x(long struct) Unsafe version ofblue_x().static voidnblue_x(long struct, double value) Unsafe version ofblue_x.static doublenblue_y(long struct) Unsafe version ofblue_y().static voidnblue_y(long struct, double value) Unsafe version ofblue_y.static doublengreen_x(long struct) Unsafe version ofgreen_x().static voidngreen_x(long struct, double value) Unsafe version ofgreen_x.static doublengreen_y(long struct) Unsafe version ofgreen_y().static voidngreen_y(long struct, double value) Unsafe version ofgreen_y.static doublenred_x(long struct) Unsafe version ofred_x().static voidnred_x(long struct, double value) Unsafe version ofred_x.static doublenred_y(long struct) Unsafe version ofred_y().static voidnred_y(long struct, double value) Unsafe version ofred_y.static doublenwhite_point_x(long struct) Unsafe version ofwhite_point_x().static voidnwhite_point_x(long struct, double value) Unsafe version ofwhite_point_x.static doublenwhite_point_y(long struct) Unsafe version ofwhite_point_y().static voidnwhite_point_y(long struct, double value) Unsafe version ofwhite_point_y.doublered_x()red_x(double value) Sets the specified value to thered_xfield.doublered_y()red_y(double value) Sets the specified value to thered_yfield.set(double white_point_x, double white_point_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).doublewhite_point_x(double value) Sets the specified value to thewhite_point_xfield.doublewhite_point_y(double value) Sets the specified value to thewhite_point_yfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WHITE_POINT_X
public static final int WHITE_POINT_XThe struct member offsets. -
WHITE_POINT_Y
public static final int WHITE_POINT_YThe struct member offsets. -
RED_X
public static final int RED_XThe struct member offsets. -
RED_Y
public static final int RED_YThe struct member offsets. -
GREEN_X
public static final int GREEN_XThe struct member offsets. -
GREEN_Y
public static final int GREEN_YThe struct member offsets. -
BLUE_X
public static final int BLUE_XThe struct member offsets. -
BLUE_Y
public static final int BLUE_YThe struct member offsets.
-
-
Constructor Details
-
spng_chrm
Creates aspng_chrminstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
white_point_x
public double white_point_x()- Returns:
- the value of the
white_point_xfield.
-
white_point_y
public double white_point_y()- Returns:
- the value of the
white_point_yfield.
-
red_x
public double red_x()- Returns:
- the value of the
red_xfield.
-
red_y
public double red_y()- Returns:
- the value of the
red_yfield.
-
green_x
public double green_x()- Returns:
- the value of the
green_xfield.
-
green_y
public double green_y()- Returns:
- the value of the
green_yfield.
-
blue_x
public double blue_x()- Returns:
- the value of the
blue_xfield.
-
blue_y
public double blue_y()- Returns:
- the value of the
blue_yfield.
-
white_point_x
Sets the specified value to thewhite_point_xfield. -
white_point_y
Sets the specified value to thewhite_point_yfield. -
red_x
Sets the specified value to thered_xfield. -
red_y
Sets the specified value to thered_yfield. -
green_x
Sets the specified value to thegreen_xfield. -
green_y
Sets the specified value to thegreen_yfield. -
blue_x
Sets the specified value to theblue_xfield. -
blue_y
Sets the specified value to theblue_yfield. -
set
public spng_chrm set(double white_point_x, double white_point_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newspng_chrminstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newspng_chrminstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newspng_chrminstance allocated withBufferUtils. -
create
Returns a newspng_chrminstance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_chrm.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newspng_chrm.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newspng_chrm.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aspng_chrm.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_chrminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newspng_chrminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newspng_chrm.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newspng_chrm.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nwhite_point_x
public static double nwhite_point_x(long struct) Unsafe version ofwhite_point_x(). -
nwhite_point_y
public static double nwhite_point_y(long struct) Unsafe version ofwhite_point_y(). -
nred_x
public static double nred_x(long struct) Unsafe version ofred_x(). -
nred_y
public static double nred_y(long struct) Unsafe version ofred_y(). -
ngreen_x
public static double ngreen_x(long struct) Unsafe version ofgreen_x(). -
ngreen_y
public static double ngreen_y(long struct) Unsafe version ofgreen_y(). -
nblue_x
public static double nblue_x(long struct) Unsafe version ofblue_x(). -
nblue_y
public static double nblue_y(long struct) Unsafe version ofblue_y(). -
nwhite_point_x
public static void nwhite_point_x(long struct, double value) Unsafe version ofwhite_point_x. -
nwhite_point_y
public static void nwhite_point_y(long struct, double value) Unsafe version ofwhite_point_y. -
nred_x
public static void nred_x(long struct, double value) Unsafe version ofred_x. -
nred_y
public static void nred_y(long struct, double value) Unsafe version ofred_y. -
ngreen_x
public static void ngreen_x(long struct, double value) Unsafe version ofgreen_x. -
ngreen_y
public static void ngreen_y(long struct, double value) Unsafe version ofgreen_y. -
nblue_x
public static void nblue_x(long struct, double value) Unsafe version ofblue_x. -
nblue_y
public static void nblue_y(long struct, double value) Unsafe version ofblue_y.
-