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 Deprecated 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 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 InputOriginInfocallocStack()Deprecated.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 InputOriginInfocreateSafe(long address)static InputOriginInfo.BuffercreateSafe(long address, int capacity)longdevicePath()static 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 InputOriginInfomallocStack()Deprecated.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 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()java.lang.StringrchRenderModelComponentNameString()intsizeof()inttrackedDeviceIndex()
-
-
-
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 the
devicePathfield.
-
trackedDeviceIndex
public int trackedDeviceIndex()
- Returns:
- the value of the
trackedDeviceIndexfield.
-
rchRenderModelComponentName
public java.nio.ByteBuffer rchRenderModelComponentName()
- Returns:
- a
ByteBufferview of therchRenderModelComponentNamefield.
-
rchRenderModelComponentNameString
public java.lang.String rchRenderModelComponentNameString()
- Returns:
- the null-terminated string stored in the
rchRenderModelComponentNamefield.
-
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
@Deprecated public static InputOriginInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static InputOriginInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static InputOriginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static InputOriginInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static InputOriginInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static InputOriginInfo.Buffer callocStack(int capacity)
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
public static InputOriginInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static InputOriginInfo calloc(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
-
malloc
public static InputOriginInfo.Buffer malloc(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
-
calloc
public static InputOriginInfo.Buffer calloc(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().
-
-