Class VRTextureWithPose

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

    public class VRTextureWithPose
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Allows specifying pose used to render provided scene texture (if different from value returned by WaitGetPoses).

    Layout

    
     struct VRTextureWithPose_t {
         void * handle;
         ETextureType eType;
         EColorSpace eColorSpace;
         HmdMatrix34_t mDeviceToAbsoluteTracking();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HANDLE, ETYPE, ECOLORSPACE, MDEVICETOABSOLUTETRACKING

        The struct member offsets.
    • Constructor Detail

      • VRTextureWithPose

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

        public long handle()
        Returns:
        the value of the handle field.
      • eType

        public int eType()
        Returns:
        the value of the eType field.
      • eColorSpace

        public int eColorSpace()
        Returns:
        the value of the eColorSpace field.
      • mDeviceToAbsoluteTracking

        public HmdMatrix34 mDeviceToAbsoluteTracking()
        actual pose used to render scene textures
      • handle

        public VRTextureWithPose handle​(long value)
        Sets the specified value to the handle field.
      • eType

        public VRTextureWithPose eType​(int value)
        Sets the specified value to the eType field.
      • eColorSpace

        public VRTextureWithPose eColorSpace​(int value)
        Sets the specified value to the eColorSpace field.
      • set

        public VRTextureWithPose set​(long handle,
                                     int eType,
                                     int eColorSpace,
                                     HmdMatrix34 mDeviceToAbsoluteTracking)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

        public static VRTextureWithPose.Buffer calloc​(int capacity,
                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new VRTextureWithPose.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
      • nhandle

        public static long nhandle​(long struct)
        Unsafe version of handle().
      • neType

        public static int neType​(long struct)
        Unsafe version of eType().
      • neColorSpace

        public static int neColorSpace​(long struct)
        Unsafe version of eColorSpace().
      • nhandle

        public static void nhandle​(long struct,
                                   long value)
        Unsafe version of handle.
      • neType

        public static void neType​(long struct,
                                  int value)
        Unsafe version of eType.
      • neColorSpace

        public static void neColorSpace​(long struct,
                                        int value)
        Unsafe version of eColorSpace.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate