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.StructValidationNested 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 aXrColor3fKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionb(float value) Sets the specified value to thebfield.static XrColor3fKHRcalloc()Returns a newXrColor3fKHRinstance allocated withmemCalloc.static XrColor3fKHR.Buffercalloc(int capacity) Returns a newXrColor3fKHR.Bufferinstance allocated withmemCalloc.static XrColor3fKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrColor3fKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrColor3fKHRcalloc(MemoryStack stack) Returns a newXrColor3fKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrColor3fKHRcreate()Returns a newXrColor3fKHRinstance allocated withBufferUtils.static XrColor3fKHR.Buffercreate(int capacity) Returns a newXrColor3fKHR.Bufferinstance allocated withBufferUtils.static XrColor3fKHRcreate(long address) Returns a newXrColor3fKHRinstance for the specified memory address.static XrColor3fKHR.Buffercreate(long address, int capacity) Create aXrColor3fKHR.Bufferinstance at the specified memory.static @Nullable XrColor3fKHRcreateSafe(long address) static @Nullable XrColor3fKHR.BuffercreateSafe(long address, int capacity) g(float value) Sets the specified value to thegfield.static XrColor3fKHRmalloc()Returns a newXrColor3fKHRinstance allocated withmemAlloc.static XrColor3fKHR.Buffermalloc(int capacity) Returns a newXrColor3fKHR.Bufferinstance allocated withmemAlloc.static XrColor3fKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrColor3fKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrColor3fKHRmalloc(MemoryStack stack) Returns a newXrColor3fKHRinstance allocated on the specifiedMemoryStack.r(float value) Sets the specified value to therfield.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, sizeofMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrColor3fKHR
Creates aXrColor3fKHRinstance 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
-
r
Sets the specified value to therfield. -
g
Sets the specified value to thegfield. -
b
Sets the specified value to thebfield. -
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 newXrColor3fKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrColor3fKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrColor3fKHRinstance allocated withBufferUtils. -
create
Returns a newXrColor3fKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrColor3fKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrColor3fKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrColor3fKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrColor3fKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrColor3fKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrColor3fKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrColor3fKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrColor3fKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-