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.NativeResource
Layout
struct InputOriginInfo_t { VRInputValueHandle_t devicePath; TrackedDeviceIndex_t trackedDeviceIndex; char rchRenderModelComponentName[128]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InputOriginInfo.Buffer
An array ofInputOriginInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEVICEPATH
RCHRENDERMODELCOMPONENTNAMEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TRACKEDDEVICEINDEX
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description InputOriginInfo(java.nio.ByteBuffer container)
Creates aInputOriginInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputOriginInfo
calloc()
Returns a newInputOriginInfo
instance allocated withmemCalloc
.static InputOriginInfo.Buffer
calloc(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated withmemCalloc
.static InputOriginInfo
callocStack()
Returns a newInputOriginInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static InputOriginInfo.Buffer
callocStack(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static InputOriginInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputOriginInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputOriginInfo
create()
Returns a newInputOriginInfo
instance allocated withBufferUtils
.static InputOriginInfo.Buffer
create(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated withBufferUtils
.static InputOriginInfo
create(long address)
Returns a newInputOriginInfo
instance for the specified memory address.static InputOriginInfo.Buffer
create(long address, int capacity)
Create aInputOriginInfo.Buffer
instance at the specified memory.static InputOriginInfo
createSafe(long address)
static InputOriginInfo.Buffer
createSafe(long address, int capacity)
long
devicePath()
Returns the value of thedevicePath
field.static InputOriginInfo
malloc()
Returns a newInputOriginInfo
instance allocated withmemAlloc
.static InputOriginInfo.Buffer
malloc(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated withmemAlloc
.static InputOriginInfo
mallocStack()
Returns a newInputOriginInfo
instance allocated on the thread-localMemoryStack
.static InputOriginInfo.Buffer
mallocStack(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated on the thread-localMemoryStack
.static InputOriginInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo.Buffer
instance allocated on the specifiedMemoryStack
.static InputOriginInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo
instance allocated on the specifiedMemoryStack
.static long
ndevicePath(long struct)
Unsafe version ofdevicePath()
.static java.nio.ByteBuffer
nrchRenderModelComponentName(long struct)
Unsafe version ofrchRenderModelComponentName()
.static java.lang.String
nrchRenderModelComponentNameString(long struct)
Unsafe version ofrchRenderModelComponentNameString()
.static int
ntrackedDeviceIndex(long struct)
Unsafe version oftrackedDeviceIndex()
.java.nio.ByteBuffer
rchRenderModelComponentName()
Returns aByteBuffer
view of therchRenderModelComponentName
field.java.lang.String
rchRenderModelComponentNameString()
Decodes the null-terminated string stored in therchRenderModelComponentName
field.int
sizeof()
int
trackedDeviceIndex()
Returns the value of thetrackedDeviceIndex
field.
-
-
-
Constructor Detail
-
InputOriginInfo
public InputOriginInfo(java.nio.ByteBuffer container)
Creates aInputOriginInfo
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
devicePath
public long devicePath()
Returns the value of thedevicePath
field.
-
trackedDeviceIndex
public int trackedDeviceIndex()
Returns the value of thetrackedDeviceIndex
field.
-
rchRenderModelComponentName
public java.nio.ByteBuffer rchRenderModelComponentName()
Returns aByteBuffer
view of therchRenderModelComponentName
field.
-
rchRenderModelComponentNameString
public java.lang.String rchRenderModelComponentNameString()
Decodes the null-terminated string stored in therchRenderModelComponentName
field.
-
malloc
public static InputOriginInfo malloc()
Returns a newInputOriginInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static InputOriginInfo calloc()
Returns a newInputOriginInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static InputOriginInfo create()
Returns a newInputOriginInfo
instance allocated withBufferUtils
.
-
create
public static InputOriginInfo create(long address)
Returns a newInputOriginInfo
instance for the specified memory address.
-
createSafe
@Nullable public static InputOriginInfo createSafe(long address)
-
malloc
public static InputOriginInfo.Buffer malloc(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static InputOriginInfo.Buffer calloc(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static InputOriginInfo.Buffer create(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static InputOriginInfo.Buffer create(long address, int capacity)
Create aInputOriginInfo.Buffer
instance 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 newInputOriginInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static InputOriginInfo callocStack()
Returns a newInputOriginInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static InputOriginInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static InputOriginInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputOriginInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static InputOriginInfo.Buffer callocStack(int capacity)
Returns a newInputOriginInfo.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-