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, NativeResource, Pointer
public class OVRHmdDesc extends Struct
A complete descriptor of the HMD.Member documentation
Type– this HMD's type. One of:Hmd_CBHmd_CV1Hmd_DK1Hmd_DK2Hmd_DKHDHmd_E3_2015Hmd_ES06Hmd_ES09Hmd_ES11Hmd_NoneHmd_OtherProductName– name string describing the product: "Oculus Rift DK1", etc.Manufacturer– string describing the manufacturer. Usually "Oculus".VendorId– HID Vendor ID of the deviceProductId– HID Product ID of the deviceSerialNumber– HMD serial numberFirmwareMajor– HMD firmware major version numberFirmwareMinor– HMD firmware minor version numberAvailableHmdCaps– capability bits described byovrHmdCapswhich the HMD currently supportsDefaultHmdCaps– capability bits described byovrHmdCapswhich are default for the currentHmdAvailableTrackingCaps– capability bits described byovrTrackingCapswhich the system currently supportsDefaultTrackingCaps– capability bits described byovrTrackingCapswhich are default for the current systemDefaultEyeFov– the recommended optical FOV for the HMDMaxEyeFov– the maximum optical FOV for the HMDResolution– resolution of the full HMD screen (both eyes) in pixelsDisplayRefreshRate– nominal refresh rate of the display in cycles per second at the time of HMD creation
Layout
struct ovrHmdDesc { ovrHmdType Type; char[4]; char[64] ProductName; char[64] Manufacturer; short VendorId; short ProductId; char[24] SerialNumber; short FirmwareMajor; short FirmwareMinor; unsigned int AvailableHmdCaps; unsigned int DefaultHmdCaps; unsigned int AvailableTrackingCaps; unsigned int DefaultTrackingCaps;ovrFovPort[2] DefaultEyeFov;ovrFovPort[2] MaxEyeFov;ovrSizeiResolution; float DisplayRefreshRate; char[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRHmdDesc.BufferAn array ofOVRHmdDescstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and Description intAvailableHmdCaps()Returns the value of theAvailableHmdCapsfield.intAvailableTrackingCaps()Returns the value of theAvailableTrackingCapsfield.static OVRHmdDesccalloc()Returns a newOVRHmdDescinstance allocated withmemCalloc.static OVRHmdDesc.Buffercalloc(int capacity)Returns a newOVRHmdDesc.Bufferinstance allocated withmemCalloc.static OVRHmdDesccallocStack()Returns a newOVRHmdDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRHmdDesc.BuffercallocStack(int capacity)Returns a newOVRHmdDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRHmdDesc.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRHmdDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRHmdDesccallocStack(MemoryStack stack)Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRHmdDesccreate()Returns a newOVRHmdDescinstance allocated withBufferUtils.static OVRHmdDesc.Buffercreate(int capacity)Returns a newOVRHmdDesc.Bufferinstance allocated withBufferUtils.static OVRHmdDesccreate(long address)static OVRHmdDesc.Buffercreate(long address, int capacity)Create aOVRHmdDesc.Bufferinstance at the specified memory.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 OVRHmdDesc.Buffermalloc(int capacity)Returns a newOVRHmdDesc.Bufferinstance allocated withmemAlloc.static OVRHmdDescmallocStack()Returns a newOVRHmdDescinstance allocated on the thread-localMemoryStack.static OVRHmdDesc.BuffermallocStack(int capacity)Returns a newOVRHmdDesc.Bufferinstance allocated on the thread-localMemoryStack.static OVRHmdDesc.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRHmdDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRHmdDescmallocStack(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.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()Returns thesizeof(struct).intType()Returns the value of theTypefield.shortVendorId()Returns the value of theVendorIdfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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)
-
malloc
public static OVRHmdDesc.Buffer malloc(int capacity)
Returns a newOVRHmdDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRHmdDesc.Buffer calloc(int capacity)
Returns a newOVRHmdDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRHmdDesc.Buffer create(int capacity)
Returns a newOVRHmdDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRHmdDesc.Buffer create(long address, int capacity)
Create aOVRHmdDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
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(MemoryStack stack)
Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRHmdDesc callocStack(MemoryStack stack)
Returns a newOVRHmdDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRHmdDesc.Buffer mallocStack(int capacity)
Returns a newOVRHmdDesc.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRHmdDesc.Buffer callocStack(int capacity)
Returns a newOVRHmdDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRHmdDesc.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRHmdDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRHmdDesc.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRHmdDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-