Package org.lwjgl.ovr

Class OVRExternalCamera

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class OVRExternalCamera
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Member documentation

    • Name[32] – camera identifier: vid + pid + serial number etc.

    Layout

    
     struct ovrExternalCamera {
         char Name[32];
         ovrCameraIntrinsics Intrinsics;
         ovrCameraExtrinsics Extrinsics;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NAME, INTRINSICS, EXTRINSICS

        The struct member offsets.
    • Constructor Detail

      • OVRExternalCamera

        public OVRExternalCamera​(java.nio.ByteBuffer container)
        Creates a OVRExternalCamera 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
      • Name

        public java.nio.ByteBuffer Name()
        Returns a ByteBuffer view of the Name field.
      • NameString

        public java.lang.String NameString()
        Decodes the null-terminated string stored in the Name field.
      • malloc

        public static OVRExternalCamera malloc()
        Returns a new OVRExternalCamera instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

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

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

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

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

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

        public static OVRExternalCamera mallocStack()
        Returns a new OVRExternalCamera instance allocated on the thread-local MemoryStack.
      • callocStack

        public static OVRExternalCamera callocStack()
        Returns a new OVRExternalCamera instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

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

        public static OVRExternalCamera.Buffer callocStack​(int capacity)
        Returns a new OVRExternalCamera.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

        public static OVRExternalCamera.Buffer mallocStack​(int capacity,
                                                           org.lwjgl.system.MemoryStack stack)
        Returns a new OVRExternalCamera.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static OVRExternalCamera.Buffer callocStack​(int capacity,
                                                           org.lwjgl.system.MemoryStack stack)
        Returns a new OVRExternalCamera.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nName

        public static java.nio.ByteBuffer nName​(long struct)
        Unsafe version of Name().
      • nNameString

        public static java.lang.String nNameString​(long struct)
        Unsafe version of NameString().