Package org.lwjgl.ovr

Class OVRTextureSwapChainDesc

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, FORMAT, ARRAYSIZE, WIDTH, HEIGHT, MIPLEVELS, SAMPLECOUNT, STATICIMAGE, MISCFLAGS, BINDFLAGS

        The struct member offsets.
    • Constructor Detail

      • OVRTextureSwapChainDesc

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

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

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

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

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

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

        public int MipLevels()
        Returns the value of the MipLevels field.
      • SampleCount

        public int SampleCount()
        Returns the value of the SampleCount field.
      • StaticImage

        public boolean StaticImage()
        Returns the value of the StaticImage field.
      • MiscFlags

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

        public int BindFlags()
        Returns the value of the BindFlags field.
      • ArraySize

        public OVRTextureSwapChainDesc ArraySize​(int value)
        Sets the specified value to the ArraySize field.
      • MipLevels

        public OVRTextureSwapChainDesc MipLevels​(int value)
        Sets the specified value to the MipLevels field.
      • SampleCount

        public OVRTextureSwapChainDesc SampleCount​(int value)
        Sets the specified value to the SampleCount field.
      • StaticImage

        public OVRTextureSwapChainDesc StaticImage​(boolean value)
        Sets the specified value to the StaticImage field.
      • MiscFlags

        public OVRTextureSwapChainDesc MiscFlags​(int value)
        Sets the specified value to the MiscFlags field.
      • BindFlags

        public OVRTextureSwapChainDesc BindFlags​(int value)
        Sets the specified value to the BindFlags field.
      • set

        public OVRTextureSwapChainDesc set​(int Type,
                                           int Format,
                                           int ArraySize,
                                           int Width,
                                           int Height,
                                           int MipLevels,
                                           int SampleCount,
                                           boolean StaticImage,
                                           int MiscFlags,
                                           int BindFlags)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static int nType​(long struct)
        Unsafe version of Type().
      • nFormat

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

        public static int nArraySize​(long struct)
        Unsafe version of ArraySize().
      • nWidth

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

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

        public static int nMipLevels​(long struct)
        Unsafe version of MipLevels().
      • nSampleCount

        public static int nSampleCount​(long struct)
        Unsafe version of SampleCount().
      • nStaticImage

        public static boolean nStaticImage​(long struct)
        Unsafe version of StaticImage().
      • nMiscFlags

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

        public static int nBindFlags​(long struct)
        Unsafe version of BindFlags().
      • nType

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

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

        public static void nArraySize​(long struct,
                                      int value)
        Unsafe version of ArraySize.
      • 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.
      • nMipLevels

        public static void nMipLevels​(long struct,
                                      int value)
        Unsafe version of MipLevels.
      • nSampleCount

        public static void nSampleCount​(long struct,
                                        int value)
        Unsafe version of SampleCount.
      • nStaticImage

        public static void nStaticImage​(long struct,
                                        boolean value)
        Unsafe version of StaticImage.
      • nMiscFlags

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

        public static void nBindFlags​(long struct,
                                      int value)
        Unsafe version of BindFlags.