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.Layout
struct ovrHmdDesc { ovrHmdTypeType(); char[4]; charProductName()[64]; charManufacturer()[64]; shortVendorId(); shortProductId(); charSerialNumber()[24]; shortFirmwareMajor(); shortFirmwareMinor(); unsigned intAvailableHmdCaps(); unsigned intDefaultHmdCaps(); unsigned intAvailableTrackingCaps(); unsigned intDefaultTrackingCaps();ovrFovPortDefaultEyeFov()[ovrEye_Count];ovrFovPortMaxEyeFov()[ovrEye_Count];ovrSizeiResolution(); floatDisplayRefreshRate(); }
-
-
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 Deprecated Methods Modifier and Type Method Description intAvailableHmdCaps()availableovrHmdCapsbitsintAvailableTrackingCaps()availableovrTrackingCapsbitsstatic 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 OVRHmdDesccallocStack()Deprecated.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 OVRHmdDesccreateSafe(long address)OVRFovPort.BufferDefaultEyeFov()the recommended optical FOV for the HMDOVRFovPortDefaultEyeFov(int index)the recommended optical FOV for the HMDintDefaultHmdCaps()defaultovrHmdCapsbitsintDefaultTrackingCaps()defaultovrTrackingCapsbitsfloatDisplayRefreshRate()refresh rate of the display in cycles per second at the time of HMD creationshortFirmwareMajor()HMD firmware major version numbershortFirmwareMinor()HMD 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 OVRHmdDescmallocStack()Deprecated.static OVRHmdDescmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBufferManufacturer()string describing the manufacturer.java.lang.StringManufacturerString()string describing the manufacturer.OVRFovPort.BufferMaxEyeFov()the maximum optical FOV for the HMDOVRFovPortMaxEyeFov(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 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()HID Product ID of the devicejava.nio.ByteBufferProductName()name string describing the product: "Oculus Rift DK1", etc.java.lang.StringProductNameString()name string describing the product: "Oculus Rift DK1", etc.OVRSizeiResolution()resolution of the full HMD screen (both eyes) in pixelsjava.nio.ByteBufferSerialNumber()HMD serial numberjava.lang.StringSerialNumberString()HMD serial numberintsizeof()intType()this HMD's type.shortVendorId()HID Vendor ID of the device
-
-
-
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()
-
ProductName, ProductNameString
public java.nio.ByteBuffer ProductName() public java.lang.String ProductNameString()
name string describing the product: "Oculus Rift DK1", etc.
-
Manufacturer, ManufacturerString
public java.nio.ByteBuffer Manufacturer() public java.lang.String 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, SerialNumberString
public java.nio.ByteBuffer SerialNumber() public java.lang.String 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
public OVRFovPort.Buffer DefaultEyeFov() public OVRFovPort DefaultEyeFov(int index)
the recommended optical FOV for the HMD
-
MaxEyeFov
public OVRFovPort.Buffer MaxEyeFov() public OVRFovPort MaxEyeFov(int index)
the maximum optical FOV for the HMD
-
Resolution
public OVRSizei 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
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
@Deprecated public static OVRHmdDesc mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRHmdDesc callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRHmdDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRHmdDesc callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
malloc
public static OVRHmdDesc malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRHmdDesc calloc(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().
-
-