Class GLFWGammaRamp.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.glfw.GLFWGammaRamp
overrungl.glfw.GLFWGammaRamp.Buffer
-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.glfw.GLFWGammaRamp
GLFWGammaRamp.Buffer
-
Field Summary
Fields inherited from class overrungl.glfw.GLFWGammaRamp
LAYOUT, LAYOUT_blue, LAYOUT_green, LAYOUT_red, LAYOUT_size, OFFSET_blue, OFFSET_green, OFFSET_red, OFFSET_size, VH_blue, VH_green, VH_red, VH_size
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesGLFWGammaRamp.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofGLFWGammaRamp
.asSlice
(long index, long count) Creates a slice ofGLFWGammaRamp
.blueAt
(long index) Returnsblue
at the given index.blueAt
(long index, MemorySegment value) Setsblue
with the given value at the given index.long
Estimates the element count of this group type buffer.greenAt
(long index) Returnsgreen
at the given index.greenAt
(long index, MemorySegment value) Setsgreen
with the given value at the given index.redAt
(long index) Returnsred
at the given index.redAt
(long index, MemorySegment value) Setsred
with the given value at the given index.int
sizeAt
(long index) Returnssize
at the given index.sizeAt
(long index, int value) Setssize
with the given value at the given index.Methods inherited from class overrungl.glfw.GLFWGammaRamp
alloc, alloc, asBuffer, blue, blue, blue, blue, copyFrom, green, green, green, green, of, ofNative, ofNative, red, red, red, red, size, size, size, size
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesGLFWGammaRamp.Buffer
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count
-
-
Method Details
-
estimateCount
public long estimateCount()Description copied from class:GroupType
Estimates the element count of this group type buffer.- Overrides:
estimateCount
in classGroupType
- Returns:
- the estimated element count of the group type buffer
-
asSlice
Creates a slice ofGLFWGammaRamp
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
GLFWGammaRamp
-
asSlice
Creates a slice ofGLFWGammaRamp
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
GLFWGammaRamp
-
redAt
Returnsred
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
red
at the given index
-
redAt
Setsred
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
greenAt
Returnsgreen
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
green
at the given index
-
greenAt
Setsgreen
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
blueAt
Returnsblue
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
blue
at the given index
-
blueAt
Setsblue
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
sizeAt
public int sizeAt(long index) Returnssize
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
size
at the given index
-
sizeAt
Setssize
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-