Package org.lwjgl.util.spng
Class spng_chrm.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<spng_chrm>
,NativeResource
,Pointer
- Enclosing class:
spng_chrm
public static class spng_chrm.Buffer
extends StructBuffer<spng_chrm,spng_chrm.Buffer>
implements NativeResource
An array of
spng_chrm
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newspng_chrm.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondouble
blue_x()
blue_x
(double value) Sets the specified value to theblue_x
field.double
blue_y()
blue_y
(double value) Sets the specified value to theblue_y
field.double
green_x()
green_x
(double value) Sets the specified value to thegreen_x
field.double
green_y()
green_y
(double value) Sets the specified value to thegreen_y
field.double
red_x()
red_x
(double value) Sets the specified value to thered_x
field.double
red_y()
red_y
(double value) Sets the specified value to thered_y
field.double
white_point_x
(double value) Sets the specified value to thewhite_point_x
field.double
white_point_y
(double value) Sets the specified value to thewhite_point_y
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newspng_chrm.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
spng_chrm.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
white_point_x
public double white_point_x()- Returns:
- the value of the
white_point_x
field.
-
white_point_y
public double white_point_y()- Returns:
- the value of the
white_point_y
field.
-
red_x
public double red_x()- Returns:
- the value of the
red_x
field.
-
red_y
public double red_y()- Returns:
- the value of the
red_y
field.
-
green_x
public double green_x()- Returns:
- the value of the
green_x
field.
-
green_y
public double green_y()- Returns:
- the value of the
green_y
field.
-
blue_x
public double blue_x()- Returns:
- the value of the
blue_x
field.
-
blue_y
public double blue_y()- Returns:
- the value of the
blue_y
field.
-
white_point_x
Sets the specified value to thewhite_point_x
field. -
white_point_y
Sets the specified value to thewhite_point_y
field. -
red_x
Sets the specified value to thered_x
field. -
red_y
Sets the specified value to thered_y
field. -
green_x
Sets the specified value to thegreen_x
field. -
green_y
Sets the specified value to thegreen_y
field. -
blue_x
Sets the specified value to theblue_x
field. -
blue_y
Sets the specified value to theblue_y
field.
-