Package org.lwjgl.openxr
Class XrRenderModelPropertiesFB
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrRenderModelPropertiesFB
extends Struct<XrRenderModelPropertiesFB>
implements NativeResource
struct XrRenderModelPropertiesFB {
XrStructureType type;
void * next;
uint32_t vendorId;
char modelName[XR_MAX_RENDER_MODEL_NAME_SIZE_FB];
XrRenderModelKeyFB modelKey;
uint32_t modelVersion;
XrRenderModelFlagsFB flags;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrRenderModelPropertiesFB(ByteBuffer container) Creates aXrRenderModelPropertiesFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrRenderModelPropertiesFBcalloc()Returns a newXrRenderModelPropertiesFBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelPropertiesFBcalloc(MemoryStack stack) Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelPropertiesFBcreate()Returns a newXrRenderModelPropertiesFBinstance allocated withBufferUtils.create(int capacity) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withBufferUtils.static XrRenderModelPropertiesFBcreate(long address) Returns a newXrRenderModelPropertiesFBinstance for the specified memory address.create(long address, int capacity) Create aXrRenderModelPropertiesFB.Bufferinstance at the specified memory.static @Nullable XrRenderModelPropertiesFBcreateSafe(long address) static @Nullable XrRenderModelPropertiesFB.BuffercreateSafe(long address, int capacity) longflags()flags(long value) Sets the specified value to theflagsfield.static XrRenderModelPropertiesFBmalloc()Returns a newXrRenderModelPropertiesFBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.static XrRenderModelPropertiesFBmalloc(MemoryStack stack) Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStack.longmodelKey()modelKey(long value) Sets the specified value to themodelKeyfield.modelName(ByteBuffer value) Copies the specified encoded string to themodelNamefield.intmodelVersion(int value) Sets the specified value to themodelVersionfield.longnext()next(long value) Sets the specified value to thenextfield.Prepends the specifiedXrRenderModelCapabilitiesRequestFBvalue to thenextchain.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 ByteBuffernmodelName(long struct) Unsafe version ofmodelName().static voidnmodelName(long struct, ByteBuffer value) Unsafe version ofmodelName.static 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.set(int type, long next, int vendorId, ByteBuffer modelName, long modelKey, int modelVersion, long flags) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_RENDER_MODEL_PROPERTIES_FBvalue to thetypefield.intvendorId()vendorId(int value) Sets the specified value to thevendorIdfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
MODELNAME
public static final int MODELNAMEThe struct member offsets. -
MODELKEY
public static final int MODELKEYThe struct member offsets. -
MODELVERSION
public static final int MODELVERSIONThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
XrRenderModelPropertiesFB
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrRenderModelPropertiesFB>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
vendorId
public int vendorId()- Returns:
- the value of the
vendorIdfield.
-
modelName
- Returns:
- a
ByteBufferview of themodelNamefield.
-
modelNameString
- Returns:
- the null-terminated string stored in the
modelNamefield.
-
modelKey
public long modelKey()- Returns:
- the value of the
modelKeyfield.
-
modelVersion
public int modelVersion()- Returns:
- the value of the
modelVersionfield.
-
flags
public long flags()- Returns:
- the value of the
flagsfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_RENDER_MODEL_PROPERTIES_FBvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
next
Prepends the specifiedXrRenderModelCapabilitiesRequestFBvalue to thenextchain. -
vendorId
Sets the specified value to thevendorIdfield. -
modelName
Copies the specified encoded string to themodelNamefield. -
modelKey
Sets the specified value to themodelKeyfield. -
modelVersion
Sets the specified value to themodelVersionfield. -
flags
Sets the specified value to theflagsfield. -
set
public XrRenderModelPropertiesFB set(int type, long next, int vendorId, ByteBuffer modelName, long modelKey, int modelVersion, long flags) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrRenderModelPropertiesFBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrRenderModelPropertiesFBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrRenderModelPropertiesFBinstance allocated withBufferUtils. -
create
Returns a newXrRenderModelPropertiesFBinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrRenderModelPropertiesFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrRenderModelPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrRenderModelPropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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
Unsafe version ofmodelName(). -
nmodelNameString
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
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.
-