Class XrFrustumfKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrFrustumf>
org.lwjgl.openxr.XrFrustumf
org.lwjgl.openxr.XrFrustumfKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrFrustumfKHR extends XrFrustumf
See XrFrustumf.

Layout


 struct XrFrustumfKHR {
     XrPosef pose;
     XrFovf fov;
     float nearZ;
     float farZ;
 }
  • Constructor Details

    • XrFrustumfKHR

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

    • pose

      public XrFrustumfKHR pose(XrPosef value)
      Copies the specified XrPosef to the pose field.
      Overrides:
      pose in class XrFrustumf
    • pose

      public XrFrustumfKHR pose(Consumer<XrPosef> consumer)
      Passes the pose field to the specified Consumer.
      Overrides:
      pose in class XrFrustumf
    • fov

      public XrFrustumfKHR fov(XrFovf value)
      Copies the specified XrFovf to the fov field.
      Overrides:
      fov in class XrFrustumf
    • fov

      public XrFrustumfKHR fov(Consumer<XrFovf> consumer)
      Passes the fov field to the specified Consumer.
      Overrides:
      fov in class XrFrustumf
    • nearZ

      public XrFrustumfKHR nearZ(float value)
      Sets the specified value to the nearZ field.
      Overrides:
      nearZ in class XrFrustumf
    • farZ

      public XrFrustumfKHR farZ(float value)
      Sets the specified value to the farZ field.
      Overrides:
      farZ in class XrFrustumf
    • set

      public XrFrustumfKHR set(XrPosef pose, XrFovf fov, float nearZ, float farZ)
      Initializes this struct with the specified values.
      Overrides:
      set in class XrFrustumf
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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