Class VRTextureWithDepth

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRTextureWithDepth>
org.lwjgl.openvr.VRTextureWithDepth
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VRTextureWithDepth extends org.lwjgl.system.Struct<VRTextureWithDepth> implements org.lwjgl.system.NativeResource

Layout


 struct VRTextureWithDepth_t {
     void * handle;
     ETextureType eType;
     EColorSpace eColorSpace;
     VRTextureDepthInfo_t depth;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • HANDLE

      public static final int HANDLE
      The struct member offsets.
    • ETYPE

      public static final int ETYPE
      The struct member offsets.
    • ECOLORSPACE

      public static final int ECOLORSPACE
      The struct member offsets.
    • DEPTH

      public static final int DEPTH
      The struct member offsets.
  • Constructor Details

    • VRTextureWithDepth

      public VRTextureWithDepth(ByteBuffer container)
      Creates a VRTextureWithDepth 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VRTextureWithDepth>
    • 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.
    • depth

      public VRTextureDepthInfo depth()
      Returns:
      a VRTextureDepthInfo view of the depth field.
    • handle

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

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

      public VRTextureWithDepth eColorSpace(int value)
      Sets the specified value to the eColorSpace field.
    • depth

      public VRTextureWithDepth depth(VRTextureDepthInfo value)
      Copies the specified VRTextureDepthInfo to the depth field.
    • depth

      Passes the depth field to the specified Consumer.
    • set

      public VRTextureWithDepth set(long handle, int eType, int eColorSpace, VRTextureDepthInfo depth)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

      public static VRTextureWithDepth.Buffer malloc(int capacity)
      Returns a new VRTextureWithDepth.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VRTextureWithDepth.Buffer calloc(int capacity)
      Returns a new VRTextureWithDepth.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VRTextureWithDepth.Buffer create(int capacity)
      Returns a new VRTextureWithDepth.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VRTextureWithDepth.Buffer create(long address, int capacity)
      Create a VRTextureWithDepth.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

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

      @Deprecated public static VRTextureWithDepth mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VRTextureWithDepth callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

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

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

      @Deprecated public static VRTextureWithDepth.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VRTextureWithDepth.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static VRTextureWithDepth.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VRTextureWithDepth.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

      public static VRTextureWithDepth.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VRTextureWithDepth.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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().
    • ndepth

      public static VRTextureDepthInfo ndepth(long struct)
      Unsafe version of depth().
    • 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.
    • ndepth

      public static void ndepth(long struct, VRTextureDepthInfo value)
      Unsafe version of depth.
    • validate

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