Class VRTextureBounds

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

public class VRTextureBounds extends org.lwjgl.system.Struct<VRTextureBounds> implements org.lwjgl.system.NativeResource
Allows the application to control what part of the provided texture will be used in the frame buffer.

Layout


 struct VRTextureBounds_t {
     float uMin;
     float vMin;
     float uMax;
     float vMax;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int UMIN
      The struct member offsets.
    • VMIN

      public static final int VMIN
      The struct member offsets.
    • UMAX

      public static final int UMAX
      The struct member offsets.
    • VMAX

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

    • VRTextureBounds

      public VRTextureBounds(ByteBuffer container)
      Creates a VRTextureBounds 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<VRTextureBounds>
    • uMin

      public float uMin()
      Returns:
      the value of the uMin field.
    • vMin

      public float vMin()
      Returns:
      the value of the vMin field.
    • uMax

      public float uMax()
      Returns:
      the value of the uMax field.
    • vMax

      public float vMax()
      Returns:
      the value of the vMax field.
    • uMin

      public VRTextureBounds uMin(float value)
      Sets the specified value to the uMin field.
    • vMin

      public VRTextureBounds vMin(float value)
      Sets the specified value to the vMin field.
    • uMax

      public VRTextureBounds uMax(float value)
      Sets the specified value to the uMax field.
    • vMax

      public VRTextureBounds vMax(float value)
      Sets the specified value to the vMax field.
    • set

      public VRTextureBounds set(float uMin, float vMin, float uMax, float vMax)
      Initializes this struct with the specified values.
    • set

      public VRTextureBounds set(VRTextureBounds src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static VRTextureBounds.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 VRTextureBounds.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 VRTextureBounds malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VRTextureBounds instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

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

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

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

      public static float nuMin(long struct)
      Unsafe version of uMin().
    • nvMin

      public static float nvMin(long struct)
      Unsafe version of vMin().
    • nuMax

      public static float nuMax(long struct)
      Unsafe version of uMax().
    • nvMax

      public static float nvMax(long struct)
      Unsafe version of vMax().
    • nuMin

      public static void nuMin(long struct, float value)
      Unsafe version of uMin.
    • nvMin

      public static void nvMin(long struct, float value)
      Unsafe version of vMin.
    • nuMax

      public static void nuMax(long struct, float value)
      Unsafe version of uMax.
    • nvMax

      public static void nvMax(long struct, float value)
      Unsafe version of vMax.