Package org.lwjgl.ovr

Class OVRHmdDesc

    • 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 a OVRHmdDesc instance at the current position of the specified ByteBuffer 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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()
        available ovrHmdCaps bits
      • DefaultHmdCaps

        public int DefaultHmdCaps()
        default ovrHmdCaps bits
      • AvailableTrackingCaps

        public int AvailableTrackingCaps()
        available ovrTrackingCaps bits
      • DefaultTrackingCaps

        public int DefaultTrackingCaps()
        default ovrTrackingCaps bits
      • DefaultEyeFov

        public OVRFovPort.Buffer DefaultEyeFov()
        
        public OVRFovPort DefaultEyeFov​(int index)
        
        the recommended 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 new OVRHmdDesc instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static OVRHmdDesc calloc()
        Returns a new OVRHmdDesc instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static OVRHmdDesc create()
        Returns a new OVRHmdDesc instance allocated with BufferUtils.
      • create

        public static OVRHmdDesc create​(long address)
        Returns a new OVRHmdDesc instance for the specified memory address.
      • createSafe

        @Nullable
        public static OVRHmdDesc createSafe​(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static OVRHmdDesc mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static OVRHmdDesc callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static OVRHmdDesc malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRHmdDesc instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static OVRHmdDesc calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRHmdDesc instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nType

        public static int nType​(long struct)
        Unsafe version of Type().
      • nProductName

        public static java.nio.ByteBuffer nProductName​(long struct)
        Unsafe version of ProductName().
      • nProductNameString

        public static java.lang.String nProductNameString​(long struct)
        Unsafe version of ProductNameString().
      • nManufacturer

        public static java.nio.ByteBuffer nManufacturer​(long struct)
        Unsafe version of Manufacturer().
      • nManufacturerString

        public static java.lang.String nManufacturerString​(long struct)
        Unsafe version of ManufacturerString().
      • nVendorId

        public static short nVendorId​(long struct)
        Unsafe version of VendorId().
      • nProductId

        public static short nProductId​(long struct)
        Unsafe version of ProductId().
      • nSerialNumber

        public static java.nio.ByteBuffer nSerialNumber​(long struct)
        Unsafe version of SerialNumber().
      • nSerialNumberString

        public static java.lang.String nSerialNumberString​(long struct)
        Unsafe version of SerialNumberString().
      • nFirmwareMajor

        public static short nFirmwareMajor​(long struct)
        Unsafe version of FirmwareMajor().
      • nFirmwareMinor

        public static short nFirmwareMinor​(long struct)
        Unsafe version of FirmwareMinor().
      • nAvailableHmdCaps

        public static int nAvailableHmdCaps​(long struct)
        Unsafe version of AvailableHmdCaps().
      • nDefaultHmdCaps

        public static int nDefaultHmdCaps​(long struct)
        Unsafe version of DefaultHmdCaps().
      • nAvailableTrackingCaps

        public static int nAvailableTrackingCaps​(long struct)
        Unsafe version of AvailableTrackingCaps().
      • nDefaultTrackingCaps

        public static int nDefaultTrackingCaps​(long struct)
        Unsafe version of DefaultTrackingCaps().
      • nDefaultEyeFov

        public static OVRFovPort nDefaultEyeFov​(long struct,
                                                int index)
        Unsafe version of DefaultEyeFov.
      • nMaxEyeFov

        public static OVRFovPort nMaxEyeFov​(long struct,
                                            int index)
        Unsafe version of MaxEyeFov.
      • nDisplayRefreshRate

        public static float nDisplayRefreshRate​(long struct)
        Unsafe version of DisplayRefreshRate().