Package org.lwjgl.ovr
Class OVRHmdDesc
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRHmdDesc>
org.lwjgl.ovr.OVRHmdDesc
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRHmdDesc
extends org.lwjgl.system.Struct<OVRHmdDesc>
implements org.lwjgl.system.NativeResource
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
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 member offsets.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 member offsets.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.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRHmdDesc(ByteBuffer container) Creates aOVRHmdDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintavailableovrHmdCapsbitsintavailableovrTrackingCapsbitsstatic OVRHmdDesccalloc()Returns a newOVRHmdDescinstance allocated withmemCalloc.static OVRHmdDesccalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRHmdDescDeprecated.static OVRHmdDesccallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRHmdDesccreate()Returns a newOVRHmdDescinstance allocated withBufferUtils.static OVRHmdDesccreate(long address) Returns a newOVRHmdDescinstance for the specified memory address.static @Nullable OVRHmdDesccreateSafe(long address) the recommended optical FOV for the HMDDefaultEyeFov(int index) the recommended optical FOV for the HMDintdefaultovrHmdCapsbitsintdefaultovrTrackingCapsbitsfloatrefresh rate of the display in cycles per second at the time of HMD creationshortHMD firmware major version numbershortHMD firmware minor version numberstatic OVRHmdDescmalloc()Returns a newOVRHmdDescinstance allocated withmemAlloc.static OVRHmdDescmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStack.static OVRHmdDescDeprecated.static OVRHmdDescmallocStack(org.lwjgl.system.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 intnAvailableHmdCaps(long struct) Unsafe version ofAvailableHmdCaps().static intnAvailableTrackingCaps(long struct) Unsafe version ofAvailableTrackingCaps().static OVRFovPort.BuffernDefaultEyeFov(long struct) Unsafe version ofDefaultEyeFov().static OVRFovPortnDefaultEyeFov(long struct, int index) Unsafe version ofDefaultEyeFov.static intnDefaultHmdCaps(long struct) Unsafe version ofDefaultHmdCaps().static intnDefaultTrackingCaps(long struct) Unsafe version ofDefaultTrackingCaps().static floatnDisplayRefreshRate(long struct) Unsafe version ofDisplayRefreshRate().static shortnFirmwareMajor(long struct) Unsafe version ofFirmwareMajor().static shortnFirmwareMinor(long struct) Unsafe version ofFirmwareMinor().static ByteBuffernManufacturer(long struct) Unsafe version ofManufacturer().static StringnManufacturerString(long struct) Unsafe version ofManufacturerString().static OVRFovPort.BuffernMaxEyeFov(long struct) Unsafe version ofMaxEyeFov().static OVRFovPortnMaxEyeFov(long struct, int index) Unsafe version ofMaxEyeFov.static shortnProductId(long struct) Unsafe version ofProductId().static ByteBuffernProductName(long struct) Unsafe version ofProductName().static StringnProductNameString(long struct) Unsafe version ofProductNameString().static OVRSizeinResolution(long struct) Unsafe version ofResolution().static ByteBuffernSerialNumber(long struct) Unsafe version ofSerialNumber().static StringnSerialNumberString(long struct) Unsafe version ofSerialNumberString().static intnType(long struct) Unsafe version ofType().static shortnVendorId(long struct) Unsafe version ofVendorId().shortHID 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 numberintsizeof()intType()this HMD's type.shortVendorId()HID Vendor ID of the deviceMethods 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. -
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 aOVRHmdDescinstance 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<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()availableovrHmdCapsbits -
DefaultHmdCaps
public int DefaultHmdCaps()defaultovrHmdCapsbits -
AvailableTrackingCaps
public int AvailableTrackingCaps()availableovrTrackingCapsbits -
DefaultTrackingCaps
public int DefaultTrackingCaps()defaultovrTrackingCapsbits -
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 newOVRHmdDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRHmdDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRHmdDescinstance allocated withBufferUtils. -
create
Returns a newOVRHmdDescinstance 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 newOVRHmdDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStackand 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().
-