Package org.lwjgl.ovr

Class OVRMirrorTextureDesc

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FORMAT, WIDTH, HEIGHT, MISCFLAGS

        The struct member offsets.
    • Constructor Detail

      • OVRMirrorTextureDesc

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

        public int Format()
        Returns the value of the Format field.
      • Width

        public int Width()
        Returns the value of the Width field.
      • Height

        public int Height()
        Returns the value of the Height field.
      • MiscFlags

        public int MiscFlags()
        Returns the value of the MiscFlags field.
      • Format

        public OVRMirrorTextureDesc Format​(int value)
        Sets the specified value to the Format field.
      • Width

        public OVRMirrorTextureDesc Width​(int value)
        Sets the specified value to the Width field.
      • Height

        public OVRMirrorTextureDesc Height​(int value)
        Sets the specified value to the Height field.
      • MiscFlags

        public OVRMirrorTextureDesc MiscFlags​(int value)
        Sets the specified value to the MiscFlags field.
      • set

        public OVRMirrorTextureDesc set​(int Format,
                                        int Width,
                                        int Height,
                                        int MiscFlags)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

        public static OVRMirrorTextureDesc callocStack()
        Returns a new OVRMirrorTextureDesc instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static OVRMirrorTextureDesc mallocStack​(MemoryStack stack)
        Returns a new OVRMirrorTextureDesc instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static OVRMirrorTextureDesc callocStack​(MemoryStack stack)
        Returns a new OVRMirrorTextureDesc instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nFormat

        public static int nFormat​(long struct)
        Unsafe version of Format().
      • nWidth

        public static int nWidth​(long struct)
        Unsafe version of Width().
      • nHeight

        public static int nHeight​(long struct)
        Unsafe version of Height().
      • nMiscFlags

        public static int nMiscFlags​(long struct)
        Unsafe version of MiscFlags().
      • nFormat

        public static void nFormat​(long struct,
                                   int value)
        Unsafe version of Format.
      • nWidth

        public static void nWidth​(long struct,
                                  int value)
        Unsafe version of Width.
      • nHeight

        public static void nHeight​(long struct,
                                   int value)
        Unsafe version of Height.
      • nMiscFlags

        public static void nMiscFlags​(long struct,
                                      int value)
        Unsafe version of MiscFlags.