Package org.lwjgl.openxr
Class XrPassthroughColorMapMonoToMonoFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrPassthroughColorMapMonoToMonoFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrPassthroughColorMapMonoToMonoFB 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 ofuint8_tintensity values that map to original intensity values.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrPassthroughColorMapMonoToMonoFB typemust beTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
Layout
struct XrPassthroughColorMapMonoToMonoFB { XrStructureType type; void const * next; uint8_t textureColorMap[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrPassthroughColorMapMonoToMonoFB.BufferAn array ofXrPassthroughColorMapMonoToMonoFBstructs.
-
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 XrPassthroughColorMapMonoToMonoFB(java.nio.ByteBuffer container)Creates aXrPassthroughColorMapMonoToMonoFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrPassthroughColorMapMonoToMonoFBcalloc()Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated withmemCalloc.static XrPassthroughColorMapMonoToMonoFB.Buffercalloc(int capacity)Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated withmemCalloc.static XrPassthroughColorMapMonoToMonoFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughColorMapMonoToMonoFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughColorMapMonoToMonoFBcreate()Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated withBufferUtils.static XrPassthroughColorMapMonoToMonoFB.Buffercreate(int capacity)Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated withBufferUtils.static XrPassthroughColorMapMonoToMonoFBcreate(long address)Returns a newXrPassthroughColorMapMonoToMonoFBinstance for the specified memory address.static XrPassthroughColorMapMonoToMonoFB.Buffercreate(long address, int capacity)Create aXrPassthroughColorMapMonoToMonoFB.Bufferinstance at the specified memory.static XrPassthroughColorMapMonoToMonoFBcreateSafe(long address)static XrPassthroughColorMapMonoToMonoFB.BuffercreateSafe(long address, int capacity)static XrPassthroughColorMapMonoToMonoFBmalloc()Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated withmemAlloc.static XrPassthroughColorMapMonoToMonoFB.Buffermalloc(int capacity)Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated withmemAlloc.static XrPassthroughColorMapMonoToMonoFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated on the specifiedMemoryStack.static XrPassthroughColorMapMonoToMonoFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated on the specifiedMemoryStack.longnext()XrPassthroughColorMapMonoToMonoFBnext(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 java.nio.ByteBufferntextureColorMap(long struct)Unsafe version oftextureColorMap().static bytentextureColorMap(long struct, int index)Unsafe version oftextureColorMap.static voidntextureColorMap(long struct, int index, byte value)Unsafe version oftextureColorMap.static voidntextureColorMap(long struct, java.nio.ByteBuffer value)Unsafe version oftextureColorMap.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPassthroughColorMapMonoToMonoFBset(int type, long next, java.nio.ByteBuffer textureColorMap)Initializes this struct with the specified values.XrPassthroughColorMapMonoToMonoFBset(XrPassthroughColorMapMonoToMonoFB src)Copies the specified struct data to this struct.intsizeof()java.nio.ByteBuffertextureColorMap()bytetextureColorMap(int index)XrPassthroughColorMapMonoToMonoFBtextureColorMap(int index, byte value)Sets the specified value at the specified index of thetextureColorMapfield.XrPassthroughColorMapMonoToMonoFBtextureColorMap(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thetextureColorMapfield.inttype()XrPassthroughColorMapMonoToMonoFBtype(int value)Sets the specified value to thetypefield.XrPassthroughColorMapMonoToMonoFBtype$Default()Sets theTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBvalue to thetypefield.
-
-
-
Constructor Detail
-
XrPassthroughColorMapMonoToMonoFB
public XrPassthroughColorMapMonoToMonoFB(java.nio.ByteBuffer container)
Creates aXrPassthroughColorMapMonoToMonoFBinstance 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 java.nio.ByteBuffer textureColorMap()
- Returns:
- a
ByteBufferview of thetextureColorMapfield.
-
textureColorMap
public byte textureColorMap(int index)
- Returns:
- the value at the specified index of the
textureColorMapfield.
-
type
public XrPassthroughColorMapMonoToMonoFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrPassthroughColorMapMonoToMonoFB type$Default()
Sets theTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBvalue to thetypefield.
-
next
public XrPassthroughColorMapMonoToMonoFB next(long value)
Sets the specified value to thenextfield.
-
textureColorMap
public XrPassthroughColorMapMonoToMonoFB textureColorMap(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thetextureColorMapfield.
-
textureColorMap
public XrPassthroughColorMapMonoToMonoFB textureColorMap(int index, byte value)
Sets the specified value at the specified index of thetextureColorMapfield.
-
set
public XrPassthroughColorMapMonoToMonoFB set(int type, long next, java.nio.ByteBuffer textureColorMap)
Initializes this struct with the specified values.
-
set
public XrPassthroughColorMapMonoToMonoFB set(XrPassthroughColorMapMonoToMonoFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrPassthroughColorMapMonoToMonoFB malloc()
Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrPassthroughColorMapMonoToMonoFB calloc()
Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrPassthroughColorMapMonoToMonoFB create()
Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated withBufferUtils.
-
create
public static XrPassthroughColorMapMonoToMonoFB create(long address)
Returns a newXrPassthroughColorMapMonoToMonoFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrPassthroughColorMapMonoToMonoFB createSafe(long address)
-
malloc
public static XrPassthroughColorMapMonoToMonoFB.Buffer malloc(int capacity)
Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrPassthroughColorMapMonoToMonoFB.Buffer calloc(int capacity)
Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughColorMapMonoToMonoFB.Buffer create(int capacity)
Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughColorMapMonoToMonoFB.Buffer create(long address, int capacity)
Create aXrPassthroughColorMapMonoToMonoFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrPassthroughColorMapMonoToMonoFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrPassthroughColorMapMonoToMonoFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrPassthroughColorMapMonoToMonoFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToMonoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrPassthroughColorMapMonoToMonoFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToMonoFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrPassthroughColorMapMonoToMonoFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughColorMapMonoToMonoFB.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 java.nio.ByteBuffer ntextureColorMap(long struct)
Unsafe version oftextureColorMap().
-
ntextureColorMap
public static byte 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, java.nio.ByteBuffer value)Unsafe version oftextureColorMap.
-
ntextureColorMap
public static void ntextureColorMap(long struct, int index, byte value)Unsafe version oftextureColorMap.
-
-