Package org.lwjgl.openvr
Class InputOriginInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.InputOriginInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class InputOriginInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct InputOriginInfo_t { VRInputValueHandle_t devicePath; TrackedDeviceIndex_t trackedDeviceIndex; char rchRenderModelComponentName[128]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputOriginInfo.BufferAn array ofInputOriginInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICEPATH
RCHRENDERMODELCOMPONENTNAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTRACKEDDEVICEINDEXThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description InputOriginInfo(java.nio.ByteBuffer container)Creates aInputOriginInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputOriginInfocalloc()Returns a newInputOriginInfoinstance allocated withmemCalloc.static InputOriginInfo.Buffercalloc(int capacity)Returns a newInputOriginInfo.Bufferinstance allocated withmemCalloc.static InputOriginInfocallocStack()Returns a newInputOriginInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static InputOriginInfo.BuffercallocStack(int capacity)Returns a newInputOriginInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static InputOriginInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputOriginInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 InputOriginInfocreateSafe(long address)static InputOriginInfo.BuffercreateSafe(long address, int capacity)longdevicePath()Returns the value of thedevicePathfield.static InputOriginInfomalloc()Returns a newInputOriginInfoinstance allocated withmemAlloc.static InputOriginInfo.Buffermalloc(int capacity)Returns a newInputOriginInfo.Bufferinstance allocated withmemAlloc.static InputOriginInfomallocStack()Returns a newInputOriginInfoinstance allocated on the thread-localMemoryStack.static InputOriginInfo.BuffermallocStack(int capacity)Returns a newInputOriginInfo.Bufferinstance allocated on the thread-localMemoryStack.static InputOriginInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStack.static InputOriginInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStack.static longndevicePath(long struct)Unsafe version ofdevicePath().static java.nio.ByteBuffernrchRenderModelComponentName(long struct)Unsafe version ofrchRenderModelComponentName().static java.lang.StringnrchRenderModelComponentNameString(long struct)Unsafe version ofrchRenderModelComponentNameString().static intntrackedDeviceIndex(long struct)Unsafe version oftrackedDeviceIndex().java.nio.ByteBufferrchRenderModelComponentName()Returns aByteBufferview of therchRenderModelComponentNamefield.java.lang.StringrchRenderModelComponentNameString()Decodes the null-terminated string stored in therchRenderModelComponentNamefield.intsizeof()inttrackedDeviceIndex()Returns the value of thetrackedDeviceIndexfield.
-
-
-
Constructor Detail
-
InputOriginInfo
public InputOriginInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
devicePath
public long devicePath()
Returns the value of thedevicePathfield.
-
trackedDeviceIndex
public int trackedDeviceIndex()
Returns the value of thetrackedDeviceIndexfield.
-
rchRenderModelComponentName
public java.nio.ByteBuffer rchRenderModelComponentName()
Returns aByteBufferview of therchRenderModelComponentNamefield.
-
rchRenderModelComponentNameString
public java.lang.String rchRenderModelComponentNameString()
Decodes the null-terminated string stored in therchRenderModelComponentNamefield.
-
malloc
public static InputOriginInfo malloc()
Returns a newInputOriginInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static InputOriginInfo calloc()
Returns a newInputOriginInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static InputOriginInfo create()
Returns a newInputOriginInfoinstance allocated withBufferUtils.
-
create
public static InputOriginInfo create(long address)
Returns a newInputOriginInfoinstance for the specified memory address.
-
createSafe
@Nullable public static InputOriginInfo createSafe(long address)
-
malloc
public static InputOriginInfo.Buffer malloc(int capacity)
Returns a newInputOriginInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static InputOriginInfo.Buffer calloc(int capacity)
Returns a newInputOriginInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static InputOriginInfo.Buffer create(int capacity)
Returns a newInputOriginInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static InputOriginInfo.Buffer create(long address, int capacity)
Create aInputOriginInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static InputOriginInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static InputOriginInfo mallocStack()
Returns a newInputOriginInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static InputOriginInfo callocStack()
Returns a newInputOriginInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static InputOriginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static InputOriginInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static InputOriginInfo.Buffer mallocStack(int capacity)
Returns a newInputOriginInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static InputOriginInfo.Buffer callocStack(int capacity)
Returns a newInputOriginInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static InputOriginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static InputOriginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndevicePath
public static long ndevicePath(long struct)
Unsafe version ofdevicePath().
-
ntrackedDeviceIndex
public static int ntrackedDeviceIndex(long struct)
Unsafe version oftrackedDeviceIndex().
-
nrchRenderModelComponentName
public static java.nio.ByteBuffer nrchRenderModelComponentName(long struct)
Unsafe version ofrchRenderModelComponentName().
-
nrchRenderModelComponentNameString
public static java.lang.String nrchRenderModelComponentNameString(long struct)
Unsafe version ofrchRenderModelComponentNameString().
-
-