Package org.lwjgl.openvr
Class VREventIpd
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventIpd
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventIpd extends org.lwjgl.system.Struct
Layout
struct VREvent_Ipd_t { float ipdMeters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventIpd.Buffer
An array ofVREventIpd
structs.
-
Constructor Summary
Constructors Constructor Description VREventIpd(java.nio.ByteBuffer container)
Creates aVREventIpd
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 VREventIpd
create(long address)
Returns a newVREventIpd
instance for the specified memory address.static VREventIpd.Buffer
create(long address, int capacity)
Create aVREventIpd.Buffer
instance at the specified memory.static VREventIpd
createSafe(long address)
static VREventIpd.Buffer
createSafe(long address, int capacity)
float
ipdMeters()
Returns the value of theipdMeters
field.static float
nipdMeters(long struct)
Unsafe version ofipdMeters()
.int
sizeof()
-
-
-
Constructor Detail
-
VREventIpd
public VREventIpd(java.nio.ByteBuffer container)
Creates aVREventIpd
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
-
ipdMeters
public float ipdMeters()
Returns the value of theipdMeters
field.
-
create
public static VREventIpd create(long address)
Returns a newVREventIpd
instance for the specified memory address.
-
createSafe
@Nullable public static VREventIpd createSafe(long address)
-
create
public static VREventIpd.Buffer create(long address, int capacity)
Create aVREventIpd.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventIpd.Buffer createSafe(long address, int capacity)
-
nipdMeters
public static float nipdMeters(long struct)
Unsafe version ofipdMeters()
.
-
-