Package org.lwjgl.openvr
Class InputOriginInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<InputOriginInfo>
org.lwjgl.openvr.InputOriginInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class InputOriginInfo
extends org.lwjgl.system.Struct<InputOriginInfo>
implements org.lwjgl.system.NativeResource
Layout
struct InputOriginInfo_t {
VRInputValueHandle_t devicePath;
TrackedDeviceIndex_t trackedDeviceIndex;
char rchRenderModelComponentName[128];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size in bytes.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
ConstructorsConstructorDescriptionInputOriginInfo(ByteBuffer container) Creates aInputOriginInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputOriginInfocalloc()Returns a newInputOriginInfoinstance allocated withmemCalloc.static InputOriginInfo.Buffercalloc(int capacity) Returns a newInputOriginInfo.Bufferinstance allocated withmemCalloc.static InputOriginInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputOriginInfocalloc(org.lwjgl.system.MemoryStack stack) Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputOriginInfoDeprecated.static InputOriginInfo.BuffercallocStack(int capacity) Deprecated.static InputOriginInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static InputOriginInfocallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static InputOriginInfocreate()Returns a newInputOriginInfoinstance allocated withBufferUtils.static InputOriginInfo.Buffercreate(int capacity) Returns a newInputOriginInfo.Bufferinstance allocated withBufferUtils.static InputOriginInfocreate(long address) Returns a newInputOriginInfoinstance for the specified memory address.static InputOriginInfo.Buffercreate(long address, int capacity) Create aInputOriginInfo.Bufferinstance at the specified memory.static @Nullable InputOriginInfocreateSafe(long address) static @Nullable InputOriginInfo.BuffercreateSafe(long address, int capacity) longstatic InputOriginInfomalloc()Returns a newInputOriginInfoinstance allocated withmemAlloc.static InputOriginInfo.Buffermalloc(int capacity) Returns a newInputOriginInfo.Bufferinstance allocated withmemAlloc.static InputOriginInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStack.static InputOriginInfomalloc(org.lwjgl.system.MemoryStack stack) Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStack.static InputOriginInfoDeprecated.static InputOriginInfo.BuffermallocStack(int capacity) Deprecated.static InputOriginInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static InputOriginInfomallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static longndevicePath(long struct) Unsafe version ofdevicePath().static ByteBuffernrchRenderModelComponentName(long struct) Unsafe version ofrchRenderModelComponentName().static StringnrchRenderModelComponentNameString(long struct) Unsafe version ofrchRenderModelComponentNameString().static intntrackedDeviceIndex(long struct) Unsafe version oftrackedDeviceIndex().intsizeof()intMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
DEVICEPATH
public static final int DEVICEPATHThe struct member offsets. -
TRACKEDDEVICEINDEX
public static final int TRACKEDDEVICEINDEXThe struct member offsets. -
RCHRENDERMODELCOMPONENTNAME
public static final int RCHRENDERMODELCOMPONENTNAMEThe struct member offsets.
-
-
Constructor Details
-
InputOriginInfo
Creates aInputOriginInfoinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<InputOriginInfo>
-
devicePath
public long devicePath()- Returns:
- the value of the
devicePathfield.
-
trackedDeviceIndex
public int trackedDeviceIndex()- Returns:
- the value of the
trackedDeviceIndexfield.
-
rchRenderModelComponentName
- Returns:
- a
ByteBufferview of therchRenderModelComponentNamefield.
-
rchRenderModelComponentNameString
- Returns:
- the null-terminated string stored in the
rchRenderModelComponentNamefield.
-
malloc
Returns a newInputOriginInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newInputOriginInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newInputOriginInfoinstance allocated withBufferUtils. -
create
Returns a newInputOriginInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newInputOriginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newInputOriginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newInputOriginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aInputOriginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static InputOriginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static InputOriginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndevicePath
public static long ndevicePath(long struct) Unsafe version ofdevicePath(). -
ntrackedDeviceIndex
public static int ntrackedDeviceIndex(long struct) Unsafe version oftrackedDeviceIndex(). -
nrchRenderModelComponentName
Unsafe version ofrchRenderModelComponentName(). -
nrchRenderModelComponentNameString
Unsafe version ofrchRenderModelComponentNameString().
-