Package org.lwjgl.openxr
Class XrPassthroughStyleFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrPassthroughStyleFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrPassthroughStyleFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA layer style.Member Descriptions
typeis theXrStructureTypeof this structure.nextisNULLor a pointer to the next structure in a structure chain, such asXrPassthroughColorMapMonoToRgbaFBorXrPassthroughColorMapMonoToRgbaFB. The color map structures are mutually exclusive.textureOpacityFactoris the opacity factor in range 0.0 to 1.0.edgeColoris theXrColor4fthat defines the color of the edge. Setting edge color to ( 0, 0, 0, 0 ) disables edge rendering.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrPassthroughStyleFB typemust beTYPE_PASSTHROUGH_STYLE_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrColor4f,PassthroughLayerSetStyleFBLayout
struct XrPassthroughStyleFB { XrStructureType type; void const * next; float textureOpacityFactor;XrColor4fedgeColor; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrPassthroughStyleFB.BufferAn array ofXrPassthroughStyleFBstructs.
-
Constructor Summary
Constructors Constructor Description XrPassthroughStyleFB(java.nio.ByteBuffer container)Creates aXrPassthroughStyleFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrPassthroughStyleFBcalloc()Returns a newXrPassthroughStyleFBinstance allocated withmemCalloc.static XrPassthroughStyleFB.Buffercalloc(int capacity)Returns a newXrPassthroughStyleFB.Bufferinstance allocated withmemCalloc.static XrPassthroughStyleFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughStyleFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughStyleFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughStyleFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughStyleFBcreate()Returns a newXrPassthroughStyleFBinstance allocated withBufferUtils.static XrPassthroughStyleFB.Buffercreate(int capacity)Returns a newXrPassthroughStyleFB.Bufferinstance allocated withBufferUtils.static XrPassthroughStyleFBcreate(long address)Returns a newXrPassthroughStyleFBinstance for the specified memory address.static XrPassthroughStyleFB.Buffercreate(long address, int capacity)Create aXrPassthroughStyleFB.Bufferinstance at the specified memory.static XrPassthroughStyleFBcreateSafe(long address)static XrPassthroughStyleFB.BuffercreateSafe(long address, int capacity)XrColor4fedgeColor()XrPassthroughStyleFBedgeColor(java.util.function.Consumer<XrColor4f> consumer)Passes theedgeColorfield to the specifiedConsumer.XrPassthroughStyleFBedgeColor(XrColor4f value)Copies the specifiedXrColor4fto theedgeColorfield.static XrPassthroughStyleFBmalloc()Returns a newXrPassthroughStyleFBinstance allocated withmemAlloc.static XrPassthroughStyleFB.Buffermalloc(int capacity)Returns a newXrPassthroughStyleFB.Bufferinstance allocated withmemAlloc.static XrPassthroughStyleFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughStyleFB.Bufferinstance allocated on the specifiedMemoryStack.static XrPassthroughStyleFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughStyleFBinstance allocated on the specifiedMemoryStack.static XrColor4fnedgeColor(long struct)Unsafe version ofedgeColor().static voidnedgeColor(long struct, XrColor4f value)Unsafe version ofedgeColor.longnext()XrPassthroughStyleFBnext(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 floatntextureOpacityFactor(long struct)Unsafe version oftextureOpacityFactor().static voidntextureOpacityFactor(long struct, float value)Unsafe version oftextureOpacityFactor.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPassthroughStyleFBset(int type, long next, float textureOpacityFactor, XrColor4f edgeColor)Initializes this struct with the specified values.XrPassthroughStyleFBset(XrPassthroughStyleFB src)Copies the specified struct data to this struct.intsizeof()floattextureOpacityFactor()XrPassthroughStyleFBtextureOpacityFactor(float value)Sets the specified value to thetextureOpacityFactorfield.inttype()XrPassthroughStyleFBtype(int value)Sets the specified value to thetypefield.XrPassthroughStyleFBtype$Default()Sets theTYPE_PASSTHROUGH_STYLE_FBvalue to thetypefield.
-
-
-
Constructor Detail
-
XrPassthroughStyleFB
public XrPassthroughStyleFB(java.nio.ByteBuffer container)
Creates aXrPassthroughStyleFBinstance 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.
-
textureOpacityFactor
public float textureOpacityFactor()
- Returns:
- the value of the
textureOpacityFactorfield.
-
type
public XrPassthroughStyleFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrPassthroughStyleFB type$Default()
Sets theTYPE_PASSTHROUGH_STYLE_FBvalue to thetypefield.
-
next
public XrPassthroughStyleFB next(long value)
Sets the specified value to thenextfield.
-
textureOpacityFactor
public XrPassthroughStyleFB textureOpacityFactor(float value)
Sets the specified value to thetextureOpacityFactorfield.
-
edgeColor
public XrPassthroughStyleFB edgeColor(XrColor4f value)
Copies the specifiedXrColor4fto theedgeColorfield.
-
edgeColor
public XrPassthroughStyleFB edgeColor(java.util.function.Consumer<XrColor4f> consumer)
Passes theedgeColorfield to the specifiedConsumer.
-
set
public XrPassthroughStyleFB set(int type, long next, float textureOpacityFactor, XrColor4f edgeColor)
Initializes this struct with the specified values.
-
set
public XrPassthroughStyleFB set(XrPassthroughStyleFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrPassthroughStyleFB malloc()
Returns a newXrPassthroughStyleFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrPassthroughStyleFB calloc()
Returns a newXrPassthroughStyleFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrPassthroughStyleFB create()
Returns a newXrPassthroughStyleFBinstance allocated withBufferUtils.
-
create
public static XrPassthroughStyleFB create(long address)
Returns a newXrPassthroughStyleFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrPassthroughStyleFB createSafe(long address)
-
malloc
public static XrPassthroughStyleFB.Buffer malloc(int capacity)
Returns a newXrPassthroughStyleFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrPassthroughStyleFB.Buffer calloc(int capacity)
Returns a newXrPassthroughStyleFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughStyleFB.Buffer create(int capacity)
Returns a newXrPassthroughStyleFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughStyleFB.Buffer create(long address, int capacity)
Create aXrPassthroughStyleFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrPassthroughStyleFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrPassthroughStyleFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughStyleFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrPassthroughStyleFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughStyleFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrPassthroughStyleFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughStyleFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrPassthroughStyleFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughStyleFB.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().
-
ntextureOpacityFactor
public static float ntextureOpacityFactor(long struct)
Unsafe version oftextureOpacityFactor().
-
nedgeColor
public static XrColor4f nedgeColor(long struct)
Unsafe version ofedgeColor().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ntextureOpacityFactor
public static void ntextureOpacityFactor(long struct, float value)Unsafe version oftextureOpacityFactor.
-
-