Package org.lwjgl.ovr
Class OVRHmdDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
A complete descriptor of the HMD.
Layout
struct ovrHmdDesc {
ovrHmdType Type()
;
char[4];
char ProductName()
[64];
char Manufacturer()
[64];
short VendorId()
;
short ProductId()
;
char SerialNumber()
[24];
short FirmwareMajor()
;
short FirmwareMinor()
;
unsigned int AvailableHmdCaps()
;
unsigned int DefaultHmdCaps()
;
unsigned int AvailableTrackingCaps()
;
unsigned int DefaultTrackingCaps()
;
ovrFovPort
DefaultEyeFov()
[ovrEye_Count];
ovrFovPort
MaxEyeFov()
[ovrEye_Count];
ovrSizei
Resolution()
;
float DisplayRefreshRate()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRHmdDesc
(ByteBuffer container) Creates aOVRHmdDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
availableovrHmdCaps
bitsint
availableovrTrackingCaps
bitsstatic OVRHmdDesc
calloc()
Returns a newOVRHmdDesc
instance allocated withmemCalloc
.static OVRHmdDesc
calloc
(MemoryStack stack) Returns a newOVRHmdDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRHmdDesc
Deprecated.static OVRHmdDesc
callocStack
(MemoryStack stack) Deprecated.static OVRHmdDesc
create()
Returns a newOVRHmdDesc
instance allocated withBufferUtils
.static OVRHmdDesc
create
(long address) Returns a newOVRHmdDesc
instance for the specified memory address.static OVRHmdDesc
createSafe
(long address) the recommended optical FOV for the HMDDefaultEyeFov
(int index) the recommended optical FOV for the HMDint
defaultovrHmdCaps
bitsint
defaultovrTrackingCaps
bitsfloat
refresh rate of the display in cycles per second at the time of HMD creationshort
HMD firmware major version numbershort
HMD firmware minor version numberstatic OVRHmdDesc
malloc()
Returns a newOVRHmdDesc
instance allocated withmemAlloc
.static OVRHmdDesc
malloc
(MemoryStack stack) Returns a newOVRHmdDesc
instance allocated on the specifiedMemoryStack
.static OVRHmdDesc
Deprecated.static OVRHmdDesc
mallocStack
(MemoryStack stack) Deprecated.string describing the manufacturer.string describing the manufacturer.the maximum optical FOV for the HMDMaxEyeFov
(int index) the maximum optical FOV for the HMDstatic int
nAvailableHmdCaps
(long struct) Unsafe version ofAvailableHmdCaps()
.static int
nAvailableTrackingCaps
(long struct) Unsafe version ofAvailableTrackingCaps()
.static OVRFovPort.Buffer
nDefaultEyeFov
(long struct) Unsafe version ofDefaultEyeFov()
.static OVRFovPort
nDefaultEyeFov
(long struct, int index) Unsafe version ofDefaultEyeFov
.static int
nDefaultHmdCaps
(long struct) Unsafe version ofDefaultHmdCaps()
.static int
nDefaultTrackingCaps
(long struct) Unsafe version ofDefaultTrackingCaps()
.static float
nDisplayRefreshRate
(long struct) Unsafe version ofDisplayRefreshRate()
.static short
nFirmwareMajor
(long struct) Unsafe version ofFirmwareMajor()
.static short
nFirmwareMinor
(long struct) Unsafe version ofFirmwareMinor()
.static ByteBuffer
nManufacturer
(long struct) Unsafe version ofManufacturer()
.static String
nManufacturerString
(long struct) Unsafe version ofManufacturerString()
.static OVRFovPort.Buffer
nMaxEyeFov
(long struct) Unsafe version ofMaxEyeFov()
.static OVRFovPort
nMaxEyeFov
(long struct, int index) Unsafe version ofMaxEyeFov
.static short
nProductId
(long struct) Unsafe version ofProductId()
.static ByteBuffer
nProductName
(long struct) Unsafe version ofProductName()
.static String
nProductNameString
(long struct) Unsafe version ofProductNameString()
.static OVRSizei
nResolution
(long struct) Unsafe version ofResolution()
.static ByteBuffer
nSerialNumber
(long struct) Unsafe version ofSerialNumber()
.static String
nSerialNumberString
(long struct) Unsafe version ofSerialNumberString()
.static int
nType
(long struct) Unsafe version ofType()
.static short
nVendorId
(long struct) Unsafe version ofVendorId()
.short
HID Product ID of the devicename string describing the product: "Oculus Rift DK1", etc.name string describing the product: "Oculus Rift DK1", etc.resolution of the full HMD screen (both eyes) in pixelsHMD serial numberHMD serial numberint
sizeof()
Returnssizeof(struct)
.int
Type()
this HMD's type.short
VendorId()
HID Vendor ID of the deviceMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
TYPE
public static final int TYPEThe struct member offsets. -
PRODUCTNAME
public static final int PRODUCTNAMEThe struct member offsets. -
MANUFACTURER
public static final int MANUFACTURERThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
PRODUCTID
public static final int PRODUCTIDThe struct member offsets. -
SERIALNUMBER
public static final int SERIALNUMBERThe struct member offsets. -
FIRMWAREMAJOR
public static final int FIRMWAREMAJORThe struct member offsets. -
FIRMWAREMINOR
public static final int FIRMWAREMINORThe struct member offsets. -
AVAILABLEHMDCAPS
public static final int AVAILABLEHMDCAPSThe struct member offsets. -
DEFAULTHMDCAPS
public static final int DEFAULTHMDCAPSThe struct member offsets. -
AVAILABLETRACKINGCAPS
public static final int AVAILABLETRACKINGCAPSThe struct member offsets. -
DEFAULTTRACKINGCAPS
public static final int DEFAULTTRACKINGCAPSThe struct member offsets. -
DEFAULTEYEFOV
public static final int DEFAULTEYEFOVThe struct member offsets. -
MAXEYEFOV
public static final int MAXEYEFOVThe struct member offsets. -
RESOLUTION
public static final int RESOLUTIONThe struct member offsets. -
DISPLAYREFRESHRATE
public static final int DISPLAYREFRESHRATEThe struct member offsets.
-
-
Constructor Details
-
OVRHmdDesc
Creates aOVRHmdDesc
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<OVRHmdDesc>
-
Type
public int Type() -
ProductName
name string describing the product: "Oculus Rift DK1", etc. -
ProductNameString
name string describing the product: "Oculus Rift DK1", etc. -
Manufacturer
string describing the manufacturer. Usually "Oculus". -
ManufacturerString
string describing the manufacturer. Usually "Oculus". -
VendorId
public short VendorId()HID Vendor ID of the device -
ProductId
public short ProductId()HID Product ID of the device -
SerialNumber
HMD serial number -
SerialNumberString
HMD serial number -
FirmwareMajor
public short FirmwareMajor()HMD firmware major version number -
FirmwareMinor
public short FirmwareMinor()HMD firmware minor version number -
AvailableHmdCaps
public int AvailableHmdCaps()availableovrHmdCaps
bits -
DefaultHmdCaps
public int DefaultHmdCaps()defaultovrHmdCaps
bits -
AvailableTrackingCaps
public int AvailableTrackingCaps()availableovrTrackingCaps
bits -
DefaultTrackingCaps
public int DefaultTrackingCaps()defaultovrTrackingCaps
bits -
DefaultEyeFov
the recommended optical FOV for the HMD -
DefaultEyeFov
the recommended optical FOV for the HMD -
MaxEyeFov
the maximum optical FOV for the HMD -
MaxEyeFov
the maximum optical FOV for the HMD -
Resolution
resolution of the full HMD screen (both eyes) in pixels -
DisplayRefreshRate
public float DisplayRefreshRate()refresh rate of the display in cycles per second at the time of HMD creation -
malloc
Returns a newOVRHmdDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRHmdDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRHmdDesc
instance allocated withBufferUtils
. -
create
Returns a newOVRHmdDesc
instance for the specified memory address. -
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. -
malloc
Returns a newOVRHmdDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRHmdDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nType
public static int nType(long struct) Unsafe version ofType()
. -
nProductName
Unsafe version ofProductName()
. -
nProductNameString
Unsafe version ofProductNameString()
. -
nManufacturer
Unsafe version ofManufacturer()
. -
nManufacturerString
Unsafe version ofManufacturerString()
. -
nVendorId
public static short nVendorId(long struct) Unsafe version ofVendorId()
. -
nProductId
public static short nProductId(long struct) Unsafe version ofProductId()
. -
nSerialNumber
Unsafe version ofSerialNumber()
. -
nSerialNumberString
Unsafe version ofSerialNumberString()
. -
nFirmwareMajor
public static short nFirmwareMajor(long struct) Unsafe version ofFirmwareMajor()
. -
nFirmwareMinor
public static short nFirmwareMinor(long struct) Unsafe version ofFirmwareMinor()
. -
nAvailableHmdCaps
public static int nAvailableHmdCaps(long struct) Unsafe version ofAvailableHmdCaps()
. -
nDefaultHmdCaps
public static int nDefaultHmdCaps(long struct) Unsafe version ofDefaultHmdCaps()
. -
nAvailableTrackingCaps
public static int nAvailableTrackingCaps(long struct) Unsafe version ofAvailableTrackingCaps()
. -
nDefaultTrackingCaps
public static int nDefaultTrackingCaps(long struct) Unsafe version ofDefaultTrackingCaps()
. -
nDefaultEyeFov
Unsafe version ofDefaultEyeFov()
. -
nDefaultEyeFov
Unsafe version ofDefaultEyeFov
. -
nMaxEyeFov
Unsafe version ofMaxEyeFov()
. -
nMaxEyeFov
Unsafe version ofMaxEyeFov
. -
nResolution
Unsafe version ofResolution()
. -
nDisplayRefreshRate
public static float nDisplayRefreshRate(long struct) Unsafe version ofDisplayRefreshRate()
.
-