Package org.lwjgl.ovr
Class OVRHmdDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRHmdDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRHmdDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA complete descriptor of the HMD.Member documentation
Type– this HMD's type. One of:Hmd_NoneHmd_DK1Hmd_DKHDHmd_DK2Hmd_CBHmd_OtherHmd_E3_2015Hmd_ES06Hmd_ES09Hmd_ES11Hmd_CV1Hmd_RiftSProductName[64]– name string describing the product: "Oculus Rift DK1", etc.Manufacturer[64]– string describing the manufacturer. Usually "Oculus".VendorId– HID Vendor ID of the deviceProductId– HID Product ID of the deviceSerialNumber[24]– HMD serial numberFirmwareMajor– HMD firmware major version numberFirmwareMinor– HMD firmware minor version numberAvailableHmdCaps– availableovrHmdCapsbitsDefaultHmdCaps– defaultovrHmdCapsbitsAvailableTrackingCaps– availableovrTrackingCapsbitsDefaultTrackingCaps– defaultovrTrackingCapsbitsDefaultEyeFov[ovrEye_Count]– the recommended optical FOV for the HMDMaxEyeFov[ovrEye_Count]– the maximum optical FOV for the HMDResolution– resolution of the full HMD screen (both eyes) in pixelsDisplayRefreshRate– refresh rate of the display in cycles per second at the time of HMD creation
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;ovrFovPortDefaultEyeFov[ovrEye_Count];ovrFovPortMaxEyeFov[ovrEye_Count];ovrSizeiResolution; float DisplayRefreshRate; }
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intAVAILABLEHMDCAPS
AVAILABLETRACKINGCAPS
DEFAULTEYEFOV
DEFAULTHMDCAPS
DEFAULTTRACKINGCAPS
DISPLAYREFRESHRATE
FIRMWAREMAJOR
FIRMWAREMINOR
MANUFACTURER
MAXEYEFOV
PRODUCTID
PRODUCTNAME
RESOLUTION
SERIALNUMBERThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
VENDORIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRHmdDesc(java.nio.ByteBuffer container)Creates aOVRHmdDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intAvailableHmdCaps()Returns the value of theAvailableHmdCapsfield.intAvailableTrackingCaps()Returns the value of theAvailableTrackingCapsfield.static OVRHmdDesccalloc()Returns a newOVRHmdDescinstance allocated withmemCalloc.static OVRHmdDesccallocStack()Returns a newOVRHmdDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRHmdDesccallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRHmdDesccreate()Returns a newOVRHmdDescinstance allocated withBufferUtils.static OVRHmdDesccreate(long address)Returns a newOVRHmdDescinstance for the specified memory address.static OVRHmdDesccreateSafe(long address)OVRFovPort.BufferDefaultEyeFov()Returns aOVRFovPort.Buffer view of theDefaultEyeFovfield.OVRFovPortDefaultEyeFov(int index)Returns aOVRFovPortview of the struct at the specified index of theDefaultEyeFovfield.intDefaultHmdCaps()Returns the value of theDefaultHmdCapsfield.intDefaultTrackingCaps()Returns the value of theDefaultTrackingCapsfield.floatDisplayRefreshRate()Returns the value of theDisplayRefreshRatefield.shortFirmwareMajor()Returns the value of theFirmwareMajorfield.shortFirmwareMinor()Returns the value of theFirmwareMinorfield.static OVRHmdDescmalloc()Returns a newOVRHmdDescinstance allocated withmemAlloc.static OVRHmdDescmallocStack()Returns a newOVRHmdDescinstance allocated on the thread-localMemoryStack.static OVRHmdDescmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStack.java.nio.ByteBufferManufacturer()Returns aByteBufferview of theManufacturerfield.java.lang.StringManufacturerString()Decodes the null-terminated string stored in theManufacturerfield.OVRFovPort.BufferMaxEyeFov()Returns aOVRFovPort.Buffer view of theMaxEyeFovfield.OVRFovPortMaxEyeFov(int index)Returns aOVRFovPortview of the struct at the specified index of theMaxEyeFovfield.static 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 java.nio.ByteBuffernManufacturer(long struct)Unsafe version ofManufacturer().static java.lang.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 java.nio.ByteBuffernProductName(long struct)Unsafe version ofProductName().static java.lang.StringnProductNameString(long struct)Unsafe version ofProductNameString().static OVRSizeinResolution(long struct)Unsafe version ofResolution().static java.nio.ByteBuffernSerialNumber(long struct)Unsafe version ofSerialNumber().static java.lang.StringnSerialNumberString(long struct)Unsafe version ofSerialNumberString().static intnType(long struct)Unsafe version ofType().static shortnVendorId(long struct)Unsafe version ofVendorId().shortProductId()Returns the value of theProductIdfield.java.nio.ByteBufferProductName()Returns aByteBufferview of theProductNamefield.java.lang.StringProductNameString()Decodes the null-terminated string stored in theProductNamefield.OVRSizeiResolution()Returns aOVRSizeiview of theResolutionfield.java.nio.ByteBufferSerialNumber()Returns aByteBufferview of theSerialNumberfield.java.lang.StringSerialNumberString()Decodes the null-terminated string stored in theSerialNumberfield.intsizeof()intType()Returns the value of theTypefield.shortVendorId()Returns the value of theVendorIdfield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
TYPE, PRODUCTNAME, MANUFACTURER, VENDORID, PRODUCTID, SERIALNUMBER, FIRMWAREMAJOR, FIRMWAREMINOR, AVAILABLEHMDCAPS, DEFAULTHMDCAPS, AVAILABLETRACKINGCAPS, DEFAULTTRACKINGCAPS, DEFAULTEYEFOV, MAXEYEFOV, RESOLUTION, DISPLAYREFRESHRATE
The struct member offsets.
-
-
Constructor Detail
-
OVRHmdDesc
public OVRHmdDesc(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Type
public int Type()
Returns the value of theTypefield.
-
ProductName
public java.nio.ByteBuffer ProductName()
Returns aByteBufferview of theProductNamefield.
-
ProductNameString
public java.lang.String ProductNameString()
Decodes the null-terminated string stored in theProductNamefield.
-
Manufacturer
public java.nio.ByteBuffer Manufacturer()
Returns aByteBufferview of theManufacturerfield.
-
ManufacturerString
public java.lang.String ManufacturerString()
Decodes the null-terminated string stored in theManufacturerfield.
-
VendorId
public short VendorId()
Returns the value of theVendorIdfield.
-
ProductId
public short ProductId()
Returns the value of theProductIdfield.
-
SerialNumber
public java.nio.ByteBuffer SerialNumber()
Returns aByteBufferview of theSerialNumberfield.
-
SerialNumberString
public java.lang.String SerialNumberString()
Decodes the null-terminated string stored in theSerialNumberfield.
-
FirmwareMajor
public short FirmwareMajor()
Returns the value of theFirmwareMajorfield.
-
FirmwareMinor
public short FirmwareMinor()
Returns the value of theFirmwareMinorfield.
-
AvailableHmdCaps
public int AvailableHmdCaps()
Returns the value of theAvailableHmdCapsfield.
-
DefaultHmdCaps
public int DefaultHmdCaps()
Returns the value of theDefaultHmdCapsfield.
-
AvailableTrackingCaps
public int AvailableTrackingCaps()
Returns the value of theAvailableTrackingCapsfield.
-
DefaultTrackingCaps
public int DefaultTrackingCaps()
Returns the value of theDefaultTrackingCapsfield.
-
DefaultEyeFov
public OVRFovPort.Buffer DefaultEyeFov()
Returns aOVRFovPort.Buffer view of theDefaultEyeFovfield.
-
DefaultEyeFov
public OVRFovPort DefaultEyeFov(int index)
Returns aOVRFovPortview of the struct at the specified index of theDefaultEyeFovfield.
-
MaxEyeFov
public OVRFovPort.Buffer MaxEyeFov()
Returns aOVRFovPort.Buffer view of theMaxEyeFovfield.
-
MaxEyeFov
public OVRFovPort MaxEyeFov(int index)
Returns aOVRFovPortview of the struct at the specified index of theMaxEyeFovfield.
-
DisplayRefreshRate
public float DisplayRefreshRate()
Returns the value of theDisplayRefreshRatefield.
-
malloc
public static OVRHmdDesc malloc()
Returns a newOVRHmdDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRHmdDesc calloc()
Returns a newOVRHmdDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRHmdDesc create()
Returns a newOVRHmdDescinstance allocated withBufferUtils.
-
create
public static OVRHmdDesc create(long address)
Returns a newOVRHmdDescinstance for the specified memory address.
-
createSafe
@Nullable public static OVRHmdDesc createSafe(long address)
-
mallocStack
public static OVRHmdDesc mallocStack()
Returns a newOVRHmdDescinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRHmdDesc callocStack()
Returns a newOVRHmdDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRHmdDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRHmdDesc callocStack(org.lwjgl.system.MemoryStack stack)
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
public static java.nio.ByteBuffer nProductName(long struct)
Unsafe version ofProductName().
-
nProductNameString
public static java.lang.String nProductNameString(long struct)
Unsafe version ofProductNameString().
-
nManufacturer
public static java.nio.ByteBuffer nManufacturer(long struct)
Unsafe version ofManufacturer().
-
nManufacturerString
public static java.lang.String nManufacturerString(long struct)
Unsafe version ofManufacturerString().
-
nVendorId
public static short nVendorId(long struct)
Unsafe version ofVendorId().
-
nProductId
public static short nProductId(long struct)
Unsafe version ofProductId().
-
nSerialNumber
public static java.nio.ByteBuffer nSerialNumber(long struct)
Unsafe version ofSerialNumber().
-
nSerialNumberString
public static java.lang.String nSerialNumberString(long struct)
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
public static OVRFovPort.Buffer nDefaultEyeFov(long struct)
Unsafe version ofDefaultEyeFov().
-
nDefaultEyeFov
public static OVRFovPort nDefaultEyeFov(long struct, int index)
Unsafe version ofDefaultEyeFov.
-
nMaxEyeFov
public static OVRFovPort.Buffer nMaxEyeFov(long struct)
Unsafe version ofMaxEyeFov().
-
nMaxEyeFov
public static OVRFovPort nMaxEyeFov(long struct, int index)
Unsafe version ofMaxEyeFov.
-
nResolution
public static OVRSizei nResolution(long struct)
Unsafe version ofResolution().
-
nDisplayRefreshRate
public static float nDisplayRefreshRate(long struct)
Unsafe version ofDisplayRefreshRate().
-
-