Package org.lwjgl.ovr
Class OVRTrackerDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTrackerDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTrackerDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecifies the description of a single sensor.Layout
struct ovrTrackerDesc { floatFrustumHFovInRadians(); floatFrustumVFovInRadians(); floatFrustumNearZInMeters(); floatFrustumFarZInMeters(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRTrackerDesc.BufferAn array ofOVRTrackerDescstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFRUSTUMFARZINMETERS
FRUSTUMHFOVINRADIANS
FRUSTUMNEARZINMETERS
FRUSTUMVFOVINRADIANSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRTrackerDesc(java.nio.ByteBuffer container)Creates aOVRTrackerDescinstance 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 OVRTrackerDesccalloc()Returns a newOVRTrackerDescinstance allocated withmemCalloc.static OVRTrackerDesc.Buffercalloc(int capacity)Returns a newOVRTrackerDesc.Bufferinstance allocated withmemCalloc.static OVRTrackerDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerDesccalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerDesccallocStack()Deprecated.static OVRTrackerDesc.BuffercallocStack(int capacity)Deprecated.static OVRTrackerDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTrackerDesccallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTrackerDesccreate()Returns a newOVRTrackerDescinstance allocated withBufferUtils.static OVRTrackerDesc.Buffercreate(int capacity)Returns a newOVRTrackerDesc.Bufferinstance allocated withBufferUtils.static OVRTrackerDesccreate(long address)Returns a newOVRTrackerDescinstance for the specified memory address.static OVRTrackerDesc.Buffercreate(long address, int capacity)Create aOVRTrackerDesc.Bufferinstance at the specified memory.static OVRTrackerDesccreateSafe(long address)static OVRTrackerDesc.BuffercreateSafe(long address, int capacity)floatFrustumFarZInMeters()sensor frustum far Z (if present).floatFrustumHFovInRadians()sensor frustum horizontal field-of-view (if present).floatFrustumNearZInMeters()sensor frustum near Z (if present).floatFrustumVFovInRadians()sensor frustum vertical field-of-view (if present).static OVRTrackerDescmalloc()Returns a newOVRTrackerDescinstance allocated withmemAlloc.static OVRTrackerDesc.Buffermalloc(int capacity)Returns a newOVRTrackerDesc.Bufferinstance allocated withmemAlloc.static OVRTrackerDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRTrackerDescmalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerDescinstance allocated on the specifiedMemoryStack.static OVRTrackerDescmallocStack()Deprecated.static OVRTrackerDesc.BuffermallocStack(int capacity)Deprecated.static OVRTrackerDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTrackerDescmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static floatnFrustumFarZInMeters(long struct)Unsafe version ofFrustumFarZInMeters().static floatnFrustumHFovInRadians(long struct)Unsafe version ofFrustumHFovInRadians().static floatnFrustumNearZInMeters(long struct)Unsafe version ofFrustumNearZInMeters().static floatnFrustumVFovInRadians(long struct)Unsafe version ofFrustumVFovInRadians().intsizeof()
-
-
-
Constructor Detail
-
OVRTrackerDesc
public OVRTrackerDesc(java.nio.ByteBuffer container)
Creates aOVRTrackerDescinstance 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
-
FrustumHFovInRadians
public float FrustumHFovInRadians()
sensor frustum horizontal field-of-view (if present).
-
FrustumVFovInRadians
public float FrustumVFovInRadians()
sensor frustum vertical field-of-view (if present).
-
FrustumNearZInMeters
public float FrustumNearZInMeters()
sensor frustum near Z (if present).
-
FrustumFarZInMeters
public float FrustumFarZInMeters()
sensor frustum far Z (if present).
-
malloc
public static OVRTrackerDesc malloc()
Returns a newOVRTrackerDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRTrackerDesc calloc()
Returns a newOVRTrackerDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRTrackerDesc create()
Returns a newOVRTrackerDescinstance allocated withBufferUtils.
-
create
public static OVRTrackerDesc create(long address)
Returns a newOVRTrackerDescinstance for the specified memory address.
-
createSafe
@Nullable public static OVRTrackerDesc createSafe(long address)
-
malloc
public static OVRTrackerDesc.Buffer malloc(int capacity)
Returns a newOVRTrackerDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRTrackerDesc.Buffer calloc(int capacity)
Returns a newOVRTrackerDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTrackerDesc.Buffer create(int capacity)
Returns a newOVRTrackerDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTrackerDesc.Buffer create(long address, int capacity)
Create aOVRTrackerDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRTrackerDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static OVRTrackerDesc mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTrackerDesc callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTrackerDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTrackerDesc callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTrackerDesc.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTrackerDesc.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTrackerDesc.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 OVRTrackerDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRTrackerDesc malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRTrackerDesc calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static OVRTrackerDesc.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static OVRTrackerDesc.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nFrustumHFovInRadians
public static float nFrustumHFovInRadians(long struct)
Unsafe version ofFrustumHFovInRadians().
-
nFrustumVFovInRadians
public static float nFrustumVFovInRadians(long struct)
Unsafe version ofFrustumVFovInRadians().
-
nFrustumNearZInMeters
public static float nFrustumNearZInMeters(long struct)
Unsafe version ofFrustumNearZInMeters().
-
nFrustumFarZInMeters
public static float nFrustumFarZInMeters(long struct)
Unsafe version ofFrustumFarZInMeters().
-
-