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

    Layout

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

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • 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()
        Description copied from class: org.lwjgl.system.Struct
        Returns sizeof(struct).
        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.
      • create

        public static OVRExternalCamera create(long address)
        Returns a new OVRExternalCamera instance for the specified memory address or null if the address is NULL.
      • 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