Package org.lwjgl.openxr
Class XrSystemColorSpacePropertiesFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemColorSpacePropertiesFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemColorSpacePropertiesFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSystem property for color space.Valid Usage (Implicit)
- The
XR_FB_color_spaceextension must be enabled prior to usingXrSystemColorSpacePropertiesFB typemust beTYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FBnextmust beNULLor a valid pointer to the next structure in a structure chaincolorSpacemust be a validXrColorSpaceFBvalue
Layout
struct XrSystemColorSpacePropertiesFB { XrStructureTypetype(); void *next(); XrColorSpaceFBcolorSpace(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemColorSpacePropertiesFB.BufferAn array ofXrSystemColorSpacePropertiesFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORSPACE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemColorSpacePropertiesFB(java.nio.ByteBuffer container)Creates aXrSystemColorSpacePropertiesFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemColorSpacePropertiesFBcalloc()Returns a newXrSystemColorSpacePropertiesFBinstance allocated withmemCalloc.static XrSystemColorSpacePropertiesFB.Buffercalloc(int capacity)Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated withmemCalloc.static XrSystemColorSpacePropertiesFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemColorSpacePropertiesFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemColorSpacePropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorSpace()the native color space of the XR device.XrSystemColorSpacePropertiesFBcolorSpace(int value)Sets the specified value to thecolorSpace()field.static XrSystemColorSpacePropertiesFBcreate()Returns a newXrSystemColorSpacePropertiesFBinstance allocated withBufferUtils.static XrSystemColorSpacePropertiesFB.Buffercreate(int capacity)Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated withBufferUtils.static XrSystemColorSpacePropertiesFBcreate(long address)Returns a newXrSystemColorSpacePropertiesFBinstance for the specified memory address.static XrSystemColorSpacePropertiesFB.Buffercreate(long address, int capacity)Create aXrSystemColorSpacePropertiesFB.Bufferinstance at the specified memory.static XrSystemColorSpacePropertiesFBcreateSafe(long address)static XrSystemColorSpacePropertiesFB.BuffercreateSafe(long address, int capacity)static XrSystemColorSpacePropertiesFBmalloc()Returns a newXrSystemColorSpacePropertiesFBinstance allocated withmemAlloc.static XrSystemColorSpacePropertiesFB.Buffermalloc(int capacity)Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated withmemAlloc.static XrSystemColorSpacePropertiesFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemColorSpacePropertiesFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemColorSpacePropertiesFBinstance allocated on the specifiedMemoryStack.static intncolorSpace(long struct)Unsafe version ofcolorSpace().static voidncolorSpace(long struct, int value)Unsafe version ofcolorSpace.longnext()NULLor a pointer to the next structure in a structure chain.XrSystemColorSpacePropertiesFBnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSystemColorSpacePropertiesFBset(int type, long next, int colorSpace)Initializes this struct with the specified values.XrSystemColorSpacePropertiesFBset(XrSystemColorSpacePropertiesFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSystemColorSpacePropertiesFBtype(int value)Sets the specified value to thetype()field.XrSystemColorSpacePropertiesFBtype$Default()Sets theTYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSystemColorSpacePropertiesFB
public XrSystemColorSpacePropertiesFB(java.nio.ByteBuffer container)
Creates aXrSystemColorSpacePropertiesFBinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
colorSpace
public int colorSpace()
the native color space of the XR device.
-
type
public XrSystemColorSpacePropertiesFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSystemColorSpacePropertiesFB type$Default()
Sets theTYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FBvalue to thetype()field.
-
next
public XrSystemColorSpacePropertiesFB next(long value)
Sets the specified value to thenext()field.
-
colorSpace
public XrSystemColorSpacePropertiesFB colorSpace(int value)
Sets the specified value to thecolorSpace()field.
-
set
public XrSystemColorSpacePropertiesFB set(int type, long next, int colorSpace)
Initializes this struct with the specified values.
-
set
public XrSystemColorSpacePropertiesFB set(XrSystemColorSpacePropertiesFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemColorSpacePropertiesFB malloc()
Returns a newXrSystemColorSpacePropertiesFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemColorSpacePropertiesFB calloc()
Returns a newXrSystemColorSpacePropertiesFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemColorSpacePropertiesFB create()
Returns a newXrSystemColorSpacePropertiesFBinstance allocated withBufferUtils.
-
create
public static XrSystemColorSpacePropertiesFB create(long address)
Returns a newXrSystemColorSpacePropertiesFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemColorSpacePropertiesFB createSafe(long address)
-
malloc
public static XrSystemColorSpacePropertiesFB.Buffer malloc(int capacity)
Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemColorSpacePropertiesFB.Buffer calloc(int capacity)
Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemColorSpacePropertiesFB.Buffer create(int capacity)
Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemColorSpacePropertiesFB.Buffer create(long address, int capacity)
Create aXrSystemColorSpacePropertiesFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemColorSpacePropertiesFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemColorSpacePropertiesFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemColorSpacePropertiesFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemColorSpacePropertiesFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemColorSpacePropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemColorSpacePropertiesFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemColorSpacePropertiesFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemColorSpacePropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
ncolorSpace
public static int ncolorSpace(long struct)
Unsafe version ofcolorSpace().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ncolorSpace
public static void ncolorSpace(long struct, int value)Unsafe version ofcolorSpace.
-
-