Package org.lwjgl.openxr
Class XrPassthroughColorMapMonoToRgbaFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrPassthroughColorMapMonoToRgbaFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrPassthroughColorMapMonoToRgbaFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA layer color map.Member Descriptions
typeis theXrStructureTypeof this structure.nextisNULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.textureColorMapis the array ofXrColor4fcolors that map to intensity values.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrPassthroughColorMapMonoToRgbaFB typemust beTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrPassthroughColorMapMonoToRgbaFB { XrStructureType type; void const * next;XrColor4ftextureColorMap[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrPassthroughColorMapMonoToRgbaFB.BufferAn array ofXrPassthroughColorMapMonoToRgbaFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXTURECOLORMAP
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrPassthroughColorMapMonoToRgbaFB(java.nio.ByteBuffer container)Creates aXrPassthroughColorMapMonoToRgbaFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrPassthroughColorMapMonoToRgbaFBcalloc()Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated withmemCalloc.static XrPassthroughColorMapMonoToRgbaFB.Buffercalloc(int capacity)Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated withmemCalloc.static XrPassthroughColorMapMonoToRgbaFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughColorMapMonoToRgbaFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughColorMapMonoToRgbaFBcreate()Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated withBufferUtils.static XrPassthroughColorMapMonoToRgbaFB.Buffercreate(int capacity)Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated withBufferUtils.static XrPassthroughColorMapMonoToRgbaFBcreate(long address)Returns a newXrPassthroughColorMapMonoToRgbaFBinstance for the specified memory address.static XrPassthroughColorMapMonoToRgbaFB.Buffercreate(long address, int capacity)Create aXrPassthroughColorMapMonoToRgbaFB.Bufferinstance at the specified memory.static XrPassthroughColorMapMonoToRgbaFBcreateSafe(long address)static XrPassthroughColorMapMonoToRgbaFB.BuffercreateSafe(long address, int capacity)static XrPassthroughColorMapMonoToRgbaFBmalloc()Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated withmemAlloc.static XrPassthroughColorMapMonoToRgbaFB.Buffermalloc(int capacity)Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated withmemAlloc.static XrPassthroughColorMapMonoToRgbaFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated on the specifiedMemoryStack.static XrPassthroughColorMapMonoToRgbaFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated on the specifiedMemoryStack.longnext()XrPassthroughColorMapMonoToRgbaFBnext(long value)Sets the specified value to thenextfield.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static XrColor4f.BufferntextureColorMap(long struct)Unsafe version oftextureColorMap().static XrColor4fntextureColorMap(long struct, int index)Unsafe version oftextureColorMap.static voidntextureColorMap(long struct, int index, XrColor4f value)Unsafe version oftextureColorMap.static voidntextureColorMap(long struct, XrColor4f.Buffer value)Unsafe version oftextureColorMap.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPassthroughColorMapMonoToRgbaFBset(int type, long next, XrColor4f.Buffer textureColorMap)Initializes this struct with the specified values.XrPassthroughColorMapMonoToRgbaFBset(XrPassthroughColorMapMonoToRgbaFB src)Copies the specified struct data to this struct.intsizeof()XrColor4f.BuffertextureColorMap()XrColor4ftextureColorMap(int index)XrPassthroughColorMapMonoToRgbaFBtextureColorMap(int index, java.util.function.Consumer<XrColor4f> consumer)Passes the element atindexof thetextureColorMapfield to the specifiedConsumer.XrPassthroughColorMapMonoToRgbaFBtextureColorMap(int index, XrColor4f value)Copies the specifiedXrColor4fat the specified index of thetextureColorMapfield.XrPassthroughColorMapMonoToRgbaFBtextureColorMap(java.util.function.Consumer<XrColor4f.Buffer> consumer)Passes thetextureColorMapfield to the specifiedConsumer.XrPassthroughColorMapMonoToRgbaFBtextureColorMap(XrColor4f.Buffer value)Copies the specifiedXrColor4f.Bufferto thetextureColorMapfield.inttype()XrPassthroughColorMapMonoToRgbaFBtype(int value)Sets the specified value to thetypefield.XrPassthroughColorMapMonoToRgbaFBtype$Default()Sets theTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBvalue to thetypefield.
-
-
-
Constructor Detail
-
XrPassthroughColorMapMonoToRgbaFB
public XrPassthroughColorMapMonoToRgbaFB(java.nio.ByteBuffer container)
Creates aXrPassthroughColorMapMonoToRgbaFBinstance 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()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
textureColorMap
public XrColor4f.Buffer textureColorMap()
- Returns:
- a
XrColor4f.Buffer view of thetextureColorMapfield.
-
textureColorMap
public XrColor4f textureColorMap(int index)
- Returns:
- a
XrColor4fview of the struct at the specified index of thetextureColorMapfield.
-
type
public XrPassthroughColorMapMonoToRgbaFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrPassthroughColorMapMonoToRgbaFB type$Default()
Sets theTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBvalue to thetypefield.
-
next
public XrPassthroughColorMapMonoToRgbaFB next(long value)
Sets the specified value to thenextfield.
-
textureColorMap
public XrPassthroughColorMapMonoToRgbaFB textureColorMap(XrColor4f.Buffer value)
Copies the specifiedXrColor4f.Bufferto thetextureColorMapfield.
-
textureColorMap
public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, XrColor4f value)
Copies the specifiedXrColor4fat the specified index of thetextureColorMapfield.
-
textureColorMap
public XrPassthroughColorMapMonoToRgbaFB textureColorMap(java.util.function.Consumer<XrColor4f.Buffer> consumer)
Passes thetextureColorMapfield to the specifiedConsumer.
-
textureColorMap
public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, java.util.function.Consumer<XrColor4f> consumer)
Passes the element atindexof thetextureColorMapfield to the specifiedConsumer.
-
set
public XrPassthroughColorMapMonoToRgbaFB set(int type, long next, XrColor4f.Buffer textureColorMap)
Initializes this struct with the specified values.
-
set
public XrPassthroughColorMapMonoToRgbaFB set(XrPassthroughColorMapMonoToRgbaFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrPassthroughColorMapMonoToRgbaFB malloc()
Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrPassthroughColorMapMonoToRgbaFB calloc()
Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrPassthroughColorMapMonoToRgbaFB create()
Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated withBufferUtils.
-
create
public static XrPassthroughColorMapMonoToRgbaFB create(long address)
Returns a newXrPassthroughColorMapMonoToRgbaFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrPassthroughColorMapMonoToRgbaFB createSafe(long address)
-
malloc
public static XrPassthroughColorMapMonoToRgbaFB.Buffer malloc(int capacity)
Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrPassthroughColorMapMonoToRgbaFB.Buffer calloc(int capacity)
Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughColorMapMonoToRgbaFB.Buffer create(int capacity)
Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughColorMapMonoToRgbaFB.Buffer create(long address, int capacity)
Create aXrPassthroughColorMapMonoToRgbaFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrPassthroughColorMapMonoToRgbaFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrPassthroughColorMapMonoToRgbaFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrPassthroughColorMapMonoToRgbaFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToRgbaFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrPassthroughColorMapMonoToRgbaFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToRgbaFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrPassthroughColorMapMonoToRgbaFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToRgbaFB.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().
-
ntextureColorMap
public static XrColor4f.Buffer ntextureColorMap(long struct)
Unsafe version oftextureColorMap().
-
ntextureColorMap
public static XrColor4f ntextureColorMap(long struct, int index)
Unsafe version oftextureColorMap.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ntextureColorMap
public static void ntextureColorMap(long struct, XrColor4f.Buffer value)Unsafe version oftextureColorMap.
-
ntextureColorMap
public static void ntextureColorMap(long struct, int index, XrColor4f value)Unsafe version oftextureColorMap.
-
-