Class VRTextureBounds

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

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


     struct VRTextureBounds_t {
         float uMin;
         float vMin;
         float uMax;
         float vMax;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VRTextureBounds

        public VRTextureBounds​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
        src - the source struct
        this struct
      • createSafe

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

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

        public static VRTextureBounds.Buffer createSafe​(long address,
                                                        int capacity)
        Like create, but returns null if address is NULL.
      • 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.