Package org.lwjgl.openxr
Class XrRenderModelPropertiesFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrRenderModelPropertiesFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrRenderModelPropertiesFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information about the render model.Description
XrRenderModelPropertiesFBcontains information about the render model for a device.XrRenderModelPropertiesFBmust be provided when callingGetRenderModelPropertiesFB. TheXrRenderModelKeyFBincluded in the properties is a unique key for each render model that is valid across multiple instances and installs.If the application decides to cache or save the render model in any way,
modelVersioncan be used to determine if the render model has changed. The application should then update its cached or saved version.Valid Usage (Implicit)
- The
XR_FB_render_modelextension must be enabled prior to usingXrRenderModelPropertiesFB typemust beTYPE_RENDER_MODEL_PROPERTIES_FBnextmust beNULLor a valid pointer to the next structure in a structure chainmodelNamemust be a null-terminated UTF-8 string whose length is less than or equal toMAX_RENDER_MODEL_NAME_SIZE_FBflagsmust be 0
See Also
Layout
struct XrRenderModelPropertiesFB { XrStructureTypetype(); void *next(); uint32_tvendorId(); charmodelName()[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]; XrRenderModelKeyFBmodelKey(); uint32_tmodelVersion(); XrRenderModelFlagsFBflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrRenderModelPropertiesFB.BufferAn array ofXrRenderModelPropertiesFBstructs.
-
Constructor Summary
Constructors Constructor Description XrRenderModelPropertiesFB(java.nio.ByteBuffer container)Creates aXrRenderModelPropertiesFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrRenderModelPropertiesFBcalloc()Returns a newXrRenderModelPropertiesFBinstance allocated withmemCalloc.static XrRenderModelPropertiesFB.Buffercalloc(int capacity)Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemCalloc.static XrRenderModelPropertiesFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelPropertiesFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelPropertiesFBcreate()Returns a newXrRenderModelPropertiesFBinstance allocated withBufferUtils.static XrRenderModelPropertiesFB.Buffercreate(int capacity)Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withBufferUtils.static XrRenderModelPropertiesFBcreate(long address)Returns a newXrRenderModelPropertiesFBinstance for the specified memory address.static XrRenderModelPropertiesFB.Buffercreate(long address, int capacity)Create aXrRenderModelPropertiesFB.Bufferinstance at the specified memory.static XrRenderModelPropertiesFBcreateSafe(long address)static XrRenderModelPropertiesFB.BuffercreateSafe(long address, int capacity)longflags()a bitmask ofXrRenderModelFlagsFB.XrRenderModelPropertiesFBflags(long value)Sets the specified value to theflags()field.static XrRenderModelPropertiesFBmalloc()Returns a newXrRenderModelPropertiesFBinstance allocated withmemAlloc.static XrRenderModelPropertiesFB.Buffermalloc(int capacity)Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemAlloc.static XrRenderModelPropertiesFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.static XrRenderModelPropertiesFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStack.longmodelKey()the unique model key used to load the model inLoadRenderModelFB.XrRenderModelPropertiesFBmodelKey(long value)Sets the specified value to themodelKey()field.java.nio.ByteBuffermodelName()the name of the model.XrRenderModelPropertiesFBmodelName(java.nio.ByteBuffer value)Copies the specified encoded string to themodelName()field.java.lang.StringmodelNameString()the name of the model.intmodelVersion()the version number of the model.XrRenderModelPropertiesFBmodelVersion(int value)Sets the specified value to themodelVersion()field.longnext()NULLor a pointer to the next structure in a structure chain.XrRenderModelPropertiesFBnext(long value)Sets the specified value to thenext()field.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.static longnmodelKey(long struct)Unsafe version ofmodelKey().static voidnmodelKey(long struct, long value)Unsafe version ofmodelKey.static java.nio.ByteBuffernmodelName(long struct)Unsafe version ofmodelName().static voidnmodelName(long struct, java.nio.ByteBuffer value)Unsafe version ofmodelName.static java.lang.StringnmodelNameString(long struct)Unsafe version ofmodelNameString().static intnmodelVersion(long struct)Unsafe version ofmodelVersion().static voidnmodelVersion(long struct, int value)Unsafe version ofmodelVersion.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.static intnvendorId(long struct)Unsafe version ofvendorId().static voidnvendorId(long struct, int value)Unsafe version ofvendorId.XrRenderModelPropertiesFBset(int type, long next, int vendorId, java.nio.ByteBuffer modelName, long modelKey, int modelVersion, long flags)Initializes this struct with the specified values.XrRenderModelPropertiesFBset(XrRenderModelPropertiesFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrRenderModelPropertiesFBtype(int value)Sets the specified value to thetype()field.XrRenderModelPropertiesFBtype$Default()Sets theTYPE_RENDER_MODEL_PROPERTIES_FBvalue to thetype()field.intvendorId()the vendor id of the model.XrRenderModelPropertiesFBvendorId(int value)Sets the specified value to thevendorId()field.
-
-
-
Constructor Detail
-
XrRenderModelPropertiesFB
public XrRenderModelPropertiesFB(java.nio.ByteBuffer container)
Creates aXrRenderModelPropertiesFBinstance 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.
-
vendorId
public int vendorId()
the vendor id of the model.
-
modelName, modelNameString
public java.nio.ByteBuffer modelName() public java.lang.String modelNameString()
the name of the model.
-
modelKey
public long modelKey()
the unique model key used to load the model inLoadRenderModelFB.
-
modelVersion
public int modelVersion()
the version number of the model.
-
flags
public long flags()
a bitmask ofXrRenderModelFlagsFB.
-
type
public XrRenderModelPropertiesFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrRenderModelPropertiesFB type$Default()
Sets theTYPE_RENDER_MODEL_PROPERTIES_FBvalue to thetype()field.
-
next
public XrRenderModelPropertiesFB next(long value)
Sets the specified value to thenext()field.
-
vendorId
public XrRenderModelPropertiesFB vendorId(int value)
Sets the specified value to thevendorId()field.
-
modelName
public XrRenderModelPropertiesFB modelName(java.nio.ByteBuffer value)
Copies the specified encoded string to themodelName()field.
-
modelKey
public XrRenderModelPropertiesFB modelKey(long value)
Sets the specified value to themodelKey()field.
-
modelVersion
public XrRenderModelPropertiesFB modelVersion(int value)
Sets the specified value to themodelVersion()field.
-
flags
public XrRenderModelPropertiesFB flags(long value)
Sets the specified value to theflags()field.
-
set
public XrRenderModelPropertiesFB set(int type, long next, int vendorId, java.nio.ByteBuffer modelName, long modelKey, int modelVersion, long flags)
Initializes this struct with the specified values.
-
set
public XrRenderModelPropertiesFB set(XrRenderModelPropertiesFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrRenderModelPropertiesFB malloc()
Returns a newXrRenderModelPropertiesFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrRenderModelPropertiesFB calloc()
Returns a newXrRenderModelPropertiesFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrRenderModelPropertiesFB create()
Returns a newXrRenderModelPropertiesFBinstance allocated withBufferUtils.
-
create
public static XrRenderModelPropertiesFB create(long address)
Returns a newXrRenderModelPropertiesFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrRenderModelPropertiesFB createSafe(long address)
-
malloc
public static XrRenderModelPropertiesFB.Buffer malloc(int capacity)
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrRenderModelPropertiesFB.Buffer calloc(int capacity)
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrRenderModelPropertiesFB.Buffer create(int capacity)
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrRenderModelPropertiesFB.Buffer create(long address, int capacity)
Create aXrRenderModelPropertiesFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrRenderModelPropertiesFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrRenderModelPropertiesFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrRenderModelPropertiesFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrRenderModelPropertiesFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrRenderModelPropertiesFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelPropertiesFB.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().
-
nvendorId
public static int nvendorId(long struct)
Unsafe version ofvendorId().
-
nmodelName
public static java.nio.ByteBuffer nmodelName(long struct)
Unsafe version ofmodelName().
-
nmodelNameString
public static java.lang.String nmodelNameString(long struct)
Unsafe version ofmodelNameString().
-
nmodelKey
public static long nmodelKey(long struct)
Unsafe version ofmodelKey().
-
nmodelVersion
public static int nmodelVersion(long struct)
Unsafe version ofmodelVersion().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nvendorId
public static void nvendorId(long struct, int value)Unsafe version ofvendorId.
-
nmodelName
public static void nmodelName(long struct, java.nio.ByteBuffer value)Unsafe version ofmodelName.
-
nmodelKey
public static void nmodelKey(long struct, long value)Unsafe version ofmodelKey.
-
nmodelVersion
public static void nmodelVersion(long struct, int value)Unsafe version ofmodelVersion.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
-