Package org.lwjgl.ovr
Class OVRTrackerDesc
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRTrackerDesc>
org.lwjgl.ovr.OVRTrackerDesc
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTrackerDesc
extends org.lwjgl.system.Struct<OVRTrackerDesc>
implements org.lwjgl.system.NativeResource
Specifies the description of a single sensor.
Layout
struct ovrTrackerDesc {
float FrustumHFovInRadians();
float FrustumVFovInRadians();
float FrustumNearZInMeters();
float FrustumFarZInMeters();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRTrackerDesc(ByteBuffer container) Creates aOVRTrackerDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 OVRTrackerDescDeprecated.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 @Nullable OVRTrackerDesccreateSafe(long address) static @Nullable OVRTrackerDesc.BuffercreateSafe(long address, int capacity) floatsensor frustum far Z (if present).floatsensor frustum horizontal field-of-view (if present).floatsensor frustum near Z (if present).floatsensor 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 OVRTrackerDescDeprecated.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()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FRUSTUMHFOVINRADIANS
public static final int FRUSTUMHFOVINRADIANSThe struct member offsets. -
FRUSTUMVFOVINRADIANS
public static final int FRUSTUMVFOVINRADIANSThe struct member offsets. -
FRUSTUMNEARZINMETERS
public static final int FRUSTUMNEARZINMETERSThe struct member offsets. -
FRUSTUMFARZINMETERS
public static final int FRUSTUMFARZINMETERSThe struct member offsets.
-
-
Constructor Details
-
OVRTrackerDesc
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRTrackerDesc>
-
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
Returns a newOVRTrackerDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRTrackerDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRTrackerDescinstance allocated withBufferUtils. -
create
Returns a newOVRTrackerDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRTrackerDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRTrackerDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRTrackerDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRTrackerDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newOVRTrackerDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRTrackerDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRTrackerDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRTrackerDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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().
-