Package org.lwjgl.openxr
Class XrColor3fKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrColor3fKHR {
float r;
float g;
float b;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
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
ConstructorsConstructorDescriptionXrColor3fKHR
(ByteBuffer container) Creates aXrColor3fKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionb
(float value) Sets the specified value to theb
field.static XrColor3fKHR
calloc()
Returns a newXrColor3fKHR
instance allocated withmemCalloc
.static XrColor3fKHR.Buffer
calloc
(int capacity) Returns a newXrColor3fKHR.Buffer
instance allocated withmemCalloc
.static XrColor3fKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrColor3fKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrColor3fKHR
calloc
(MemoryStack stack) Returns a newXrColor3fKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrColor3fKHR
create()
Returns a newXrColor3fKHR
instance allocated withBufferUtils
.static XrColor3fKHR.Buffer
create
(int capacity) Returns a newXrColor3fKHR.Buffer
instance allocated withBufferUtils
.static XrColor3fKHR
create
(long address) Returns a newXrColor3fKHR
instance for the specified memory address.static XrColor3fKHR.Buffer
create
(long address, int capacity) Create aXrColor3fKHR.Buffer
instance at the specified memory.static @Nullable XrColor3fKHR
createSafe
(long address) static @Nullable XrColor3fKHR.Buffer
createSafe
(long address, int capacity) g
(float value) Sets the specified value to theg
field.static XrColor3fKHR
malloc()
Returns a newXrColor3fKHR
instance allocated withmemAlloc
.static XrColor3fKHR.Buffer
malloc
(int capacity) Returns a newXrColor3fKHR.Buffer
instance allocated withmemAlloc
.static XrColor3fKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrColor3fKHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrColor3fKHR
malloc
(MemoryStack stack) Returns a newXrColor3fKHR
instance allocated on the specifiedMemoryStack
.r
(float value) Sets the specified value to ther
field.set
(float r, float g, float b) Initializes this struct with the specified values.set
(XrColor3fKHR src) Copies the specified struct data to this struct.Methods inherited from class org.lwjgl.openxr.XrColor3f
b, g, nb, nb, ng, ng, nr, nr, r, set, sizeof
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrColor3fKHR
Creates aXrColor3fKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
r
Sets the specified value to ther
field. -
g
Sets the specified value to theg
field. -
b
Sets the specified value to theb
field. -
set
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 newXrColor3fKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrColor3fKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrColor3fKHR
instance allocated withBufferUtils
. -
create
Returns a newXrColor3fKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrColor3fKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrColor3fKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrColor3fKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrColor3fKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrColor3fKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrColor3fKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrColor3fKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrColor3fKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-