Package org.lwjgl.ovr

Class OVRHmdDesc.Buffer

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Iterable<OVRHmdDesc>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Enclosing class:
    OVRHmdDesc


    public static class OVRHmdDesc.Buffer
    extends org.lwjgl.system.StructBuffer<OVRHmdDesc,OVRHmdDesc.Buffer>
    implements org.lwjgl.system.NativeResource
    An array of OVRHmdDesc structs.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      • Fields inherited from interface org.lwjgl.system.Pointer

        POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor and Description
      Buffer(java.nio.ByteBuffer container)
      Creates a new OVRHmdDesc.Buffer instance backed by the specified container.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int AvailableHmdCaps()
      Returns the value of the AvailableHmdCaps field.
      int AvailableTrackingCaps()
      Returns the value of the AvailableTrackingCaps field.
      OVRFovPort.Buffer DefaultEyeFov()
      Returns a OVRFovPort.Buffer view of the DefaultEyeFov field.
      OVRFovPort DefaultEyeFov(int index)
      Returns a OVRFovPort view of the struct at the specified index of the DefaultEyeFov field.
      int DefaultHmdCaps()
      Returns the value of the DefaultHmdCaps field.
      int DefaultTrackingCaps()
      Returns the value of the DefaultTrackingCaps field.
      float DisplayRefreshRate()
      Returns the value of the DisplayRefreshRate field.
      short FirmwareMajor()
      Returns the value of the FirmwareMajor field.
      short FirmwareMinor()
      Returns the value of the FirmwareMinor field.
      java.nio.ByteBuffer Manufacturer()
      Returns a ByteBuffer view of the Manufacturer field.
      java.lang.String ManufacturerString()
      Decodes the null-terminated string stored in the Manufacturer field.
      OVRFovPort.Buffer MaxEyeFov()
      Returns a OVRFovPort.Buffer view of the MaxEyeFov field.
      OVRFovPort MaxEyeFov(int index)
      Returns a OVRFovPort view of the struct at the specified index of the MaxEyeFov field.
      short ProductId()
      Returns the value of the ProductId field.
      java.nio.ByteBuffer ProductName()
      Returns a ByteBuffer view of the ProductName field.
      java.lang.String ProductNameString()
      Decodes the null-terminated string stored in the ProductName field.
      OVRSizei Resolution()
      Returns a OVRSizei view of the Resolution field.
      java.nio.ByteBuffer SerialNumber()
      Returns a ByteBuffer view of the SerialNumber field.
      java.lang.String SerialNumberString()
      Decodes the null-terminated string stored in the SerialNumber field.
      int sizeof()
      Returns the sizeof a single element in the buffer.
      int Type()
      Returns the value of the Type field.
      short VendorId()
      Returns the value of the VendorId field.
      • Methods inherited from class org.lwjgl.system.StructBuffer

        forEach, get, get, get, get, iterator, parallelStream, put, put, spliterator, stream
      • Methods inherited from class org.lwjgl.system.CustomBuffer

        address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
    • Constructor Detail

      • Buffer

        public Buffer(java.nio.ByteBuffer container)
        Creates a new OVRHmdDesc.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by OVRHmdDesc.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: org.lwjgl.system.CustomBuffer
        Returns the sizeof a single element in the buffer.
        Specified by:
        sizeof in class org.lwjgl.system.CustomBuffer<OVRHmdDesc.Buffer>
      • Type

        public int Type()
        Returns the value of the Type field.
      • ProductName

        public java.nio.ByteBuffer ProductName()
        Returns a ByteBuffer view of the ProductName field.
      • ProductNameString

        public java.lang.String ProductNameString()
        Decodes the null-terminated string stored in the ProductName field.
      • Manufacturer

        public java.nio.ByteBuffer Manufacturer()
        Returns a ByteBuffer view of the Manufacturer field.
      • ManufacturerString

        public java.lang.String ManufacturerString()
        Decodes the null-terminated string stored in the Manufacturer field.
      • VendorId

        public short VendorId()
        Returns the value of the VendorId field.
      • ProductId

        public short ProductId()
        Returns the value of the ProductId field.
      • SerialNumber

        public java.nio.ByteBuffer SerialNumber()
        Returns a ByteBuffer view of the SerialNumber field.
      • SerialNumberString

        public java.lang.String SerialNumberString()
        Decodes the null-terminated string stored in the SerialNumber field.
      • FirmwareMajor

        public short FirmwareMajor()
        Returns the value of the FirmwareMajor field.
      • FirmwareMinor

        public short FirmwareMinor()
        Returns the value of the FirmwareMinor field.
      • AvailableHmdCaps

        public int AvailableHmdCaps()
        Returns the value of the AvailableHmdCaps field.
      • DefaultHmdCaps

        public int DefaultHmdCaps()
        Returns the value of the DefaultHmdCaps field.
      • AvailableTrackingCaps

        public int AvailableTrackingCaps()
        Returns the value of the AvailableTrackingCaps field.
      • DefaultTrackingCaps

        public int DefaultTrackingCaps()
        Returns the value of the DefaultTrackingCaps field.
      • DefaultEyeFov

        public OVRFovPort DefaultEyeFov(int index)
        Returns a OVRFovPort view of the struct at the specified index of the DefaultEyeFov field.
      • MaxEyeFov

        public OVRFovPort MaxEyeFov(int index)
        Returns a OVRFovPort view of the struct at the specified index of the MaxEyeFov field.
      • Resolution

        public OVRSizei Resolution()
        Returns a OVRSizei view of the Resolution field.
      • DisplayRefreshRate

        public float DisplayRefreshRate()
        Returns the value of the DisplayRefreshRate field.