java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.glfw.GLFWGammaRamp
- All Implemented Interfaces:
Addressable
GLFWGammaRamp
relies on preview features of the Java platform:
GLFWGammaRamp
refers to one or more preview APIs:MemorySegment
,SegmentAllocator
,StructLayout
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
This describes the gamma ramp for a monitor.
Layout
struct GLFWgammaramp {
unsigned short* red
;
unsigned short* green
;
unsigned short* blue
;
unsigned int size(int)
;
}
- Since:
- 0.1.0
- Author:
- squid233
- See Also:
-
Field Summary
Fields inherited from class overrungl.Pointer
address, allocator, managedSegment
-
Constructor Summary
ConstructorDescriptionGLFWGammaRamp
(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator) Create aGLFWgammaramp const
instance. -
Method Summary
Modifier and TypeMethodDescriptionshort[]
blue()
Gets the blue value array.short
blue
(int index) Gets a blue value at the given index.blue
(short[] blues) Sets the blue value array.short[]
blues
(int size) Returns the blue value array.static GLFWGammaRamp
create
(SegmentAllocatorPREVIEW allocator) Creates aGLFWgammaramp
instance with the given allocator.short[]
green()
Gets the green value array.short
green
(int index) Gets a green value at the given index.green
(short[] greens) Sets the green value array.short[]
greens
(int size) Returns the green value array.nblue()
ngreen()
nred()
short[]
red()
Gets the red value array.short
red
(int index) Gets a red value at the given index.red
(short[] reds) Sets the red value array.short[]
reds
(int size) Returns the red value array.int
size()
Gets the arrays size.size
(int size) Sets the arrays size.
-
Field Details
-
LAYOUT
The struct layout.
-
-
Constructor Details
-
GLFWGammaRamp
Create aGLFWgammaramp const
instance.- Parameters:
address
- the address.allocator
- the allocator of this address.
-
-
Method Details
-
create
Creates aGLFWgammaramp
instance with the given allocator.- Parameters:
allocator
- the allocator- Returns:
- the instance
-
red
Sets the red value array.- Parameters:
reds
- the array- Returns:
- this
-
green
Sets the green value array.- Parameters:
greens
- the array- Returns:
- this
-
blue
Sets the blue value array.- Parameters:
blues
- the array- Returns:
- this
-
size
Sets the arrays size.- Parameters:
size
- The number of elements in each array.- Returns:
- this
-
red
public short red(int index) Gets a red value at the given index.- Parameters:
index
- the index- Returns:
- the red value
-
green
public short green(int index) Gets a green value at the given index.- Parameters:
index
- the index- Returns:
- the green value
-
blue
public short blue(int index) Gets a blue value at the given index.- Parameters:
index
- the index- Returns:
- the blue value
-
reds
public short[] reds(int size) Returns the red value array.- Parameters:
size
- the array size- Returns:
- the red value array
-
greens
public short[] greens(int size) Returns the green value array.- Parameters:
size
- the array size- Returns:
- the green value array
-
blues
public short[] blues(int size) Returns the blue value array.- Parameters:
size
- the array size- Returns:
- the blue value array
-
red
public short[] red()Gets the red value array.- Returns:
- An array of value describing the response of the red channel.
-
green
public short[] green()Gets the green value array.- Returns:
- An array of value describing the response of the green channel.
-
blue
public short[] blue()Gets the blue value array.- Returns:
- An array of value describing the response of the blue channel.
-
size
public int size()Gets the arrays size.- Returns:
- The number of elements in each array.
-
nred
-
ngreen
-
nblue
-
GLFWGammaRamp
when preview features are enabled.